@@ -5,6 +5,7 @@ plugins {
55 id ' groovy'
66 id ' java-library'
77 id ' maven-publish'
8+ id ' signing'
89 id " org.sonarqube" version " 3.0"
910 id ' org.jetbrains.dokka' version ' 1.4.20'
1011 id ' org.jetbrains.kotlin.jvm' version ' 1.4.20'
@@ -20,15 +21,23 @@ java {
2021 targetCompatibility = JavaVersion . VERSION_1_8
2122}
2223
24+ String getBuildProperty (String property ) {
25+ project. findProperty (property) ?: System . getenv (property) ?: ' n/a'
26+ }
2327
2428ext {
2529 processorApiVersion = ' 2021.1'
2630 processorCoreVersion = ' 2021.1-SNAPSHOT'
2731 processorTestVersion = ' 2021.1'
2832 jacksonVersion = ' 2.12.0'
2933
30- bintrayUser = project. findProperty (' BINTRAY_USER' ) ?: System . getenv (" BINTRAY_USER" ) ?: ' n/a'
31- bintrayKey = project. findProperty (' BINTRAY_KEY' ) ?: System . getenv (" BINTRAY_KEY" ) ?: ' n/a'
34+ publishUser = getBuildProperty (' PUBLISH_USER' )
35+ publishKey = getBuildProperty (' PUBLISH_KEY' )
36+
37+ signKey = getBuildProperty (' SIGN_KEY' )
38+ signPwd = getBuildProperty (' SIGN_PWD' )
39+
40+ isReleaseVersion = ! version. endsWith(" SNAPSHOT" )
3241}
3342
3443
@@ -38,26 +47,6 @@ repositories {
3847 maven {
3948 url " https://oss.sonatype.org/content/repositories/snapshots"
4049 }
41-
42- maven {
43- url " https://dl.bintray.com/openapi-processor/primary"
44- content {
45- includeGroup " io.openapiprocessor"
46- }
47- mavenContent {
48- releasesOnly()
49- }
50- }
51-
52- maven {
53- url " https://oss.jfrog.org/artifactory/oss-snapshot-local"
54- content {
55- includeGroup " io.openapiprocessor"
56- }
57- mavenContent {
58- snapshotsOnly()
59- }
60- }
6150}
6251
6352sourceSets {
0 commit comments