Skip to content

Commit

Permalink
update configs to prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
hbmartin committed May 30, 2021
1 parent 3ed1515 commit f106982
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
check-master:
if [[ `git rev-parse --abbrev-ref HEAD` != "master" ]]; then exit 1; fi

no-unstaged:
git diff-index --quiet HEAD -- # checks for unstaged/uncomitted files

pull:
git pull

lint:
./gradlew clean ktlintCheck detekt

tag:
git tag "v`grep 'VERSION_NAME' protobuf_java_to_protobufjs/gradle.properties | cut -d'=' -f2 | tr -d '\n'`"
git push --tags

upload:
./gradlew :protobuf_java_to_protobufjs:assemble :protobuf_java_to_protobufjs:publish

release: check-master no-unstaged pull lint tag upload
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ detekt {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
project.ext {
desktopIP="\"${getLocalIPv4()[0]}\""
Expand Down
12 changes: 1 addition & 11 deletions protobuf_java_to_protobufjs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'org.jlleitschuh.gradle.ktlint'
id 'io.gitlab.arturbosch.detekt'
id 'maven-publish'
id 'signing'
}

detekt {
Expand All @@ -21,17 +22,6 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

publishing {
repositories {
maven {
credentials {
username 'hmartin'
}
url = 'https://s01.oss.sonatype.org/content/repositories/releases'
}
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.google.protobuf:protobuf-java:$protobuf_version"
Expand Down
2 changes: 1 addition & 1 deletion protobuf_java_to_protobufjs/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ POM_DEVELOPER_NAME=Harold Martin
POM_DEVELOPER_URL=https://github.com/hbmartin/
GROUP=com.github.hbmartin

VERSION_NAME=0.0.1
VERSION_NAME=0.1.0

0 comments on commit f106982

Please sign in to comment.