Skip to content

Commit f106982

Browse files
committed
update configs to prepare for release
1 parent 3ed1515 commit f106982

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

.idea/compiler.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
check-master:
2+
if [[ `git rev-parse --abbrev-ref HEAD` != "master" ]]; then exit 1; fi
3+
4+
no-unstaged:
5+
git diff-index --quiet HEAD -- # checks for unstaged/uncomitted files
6+
7+
pull:
8+
git pull
9+
10+
lint:
11+
./gradlew clean ktlintCheck detekt
12+
13+
tag:
14+
git tag "v`grep 'VERSION_NAME' protobuf_java_to_protobufjs/gradle.properties | cut -d'=' -f2 | tr -d '\n'`"
15+
git push --tags
16+
17+
upload:
18+
./gradlew :protobuf_java_to_protobufjs:assemble :protobuf_java_to_protobufjs:publish
19+
20+
release: check-master no-unstaged pull lint tag upload

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ detekt {
3939
allprojects {
4040
repositories {
4141
google()
42-
jcenter()
42+
mavenCentral()
4343
}
4444
project.ext {
4545
desktopIP="\"${getLocalIPv4()[0]}\""

protobuf_java_to_protobufjs/build.gradle

+1-11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id 'org.jlleitschuh.gradle.ktlint'
55
id 'io.gitlab.arturbosch.detekt'
66
id 'maven-publish'
7+
id 'signing'
78
}
89

910
detekt {
@@ -21,17 +22,6 @@ java {
2122
targetCompatibility = JavaVersion.VERSION_1_8
2223
}
2324

24-
publishing {
25-
repositories {
26-
maven {
27-
credentials {
28-
username 'hmartin'
29-
}
30-
url = 'https://s01.oss.sonatype.org/content/repositories/releases'
31-
}
32-
}
33-
}
34-
3525
dependencies {
3626
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
3727
implementation "com.google.protobuf:protobuf-java:$protobuf_version"

protobuf_java_to_protobufjs/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ POM_DEVELOPER_NAME=Harold Martin
1818
POM_DEVELOPER_URL=https://github.com/hbmartin/
1919
GROUP=com.github.hbmartin
2020

21-
VERSION_NAME=0.0.1
21+
VERSION_NAME=0.1.0

0 commit comments

Comments
 (0)