Skip to content

Commit ebba4d8

Browse files
authoredMay 21, 2021
Merge pull request #48 from DmPanov/master
IJI-618 Upload java-annotations library to Maven Central directly
2 parents 3a16968 + 40a0928 commit ebba4d8

File tree

5 files changed

+30
-21
lines changed

5 files changed

+30
-21
lines changed
 

‎build.gradle

+27-18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import jetbrains.sign.GpgSignSignatoryProvider
2+
13
/*
24
* Copyright 2000-2021 JetBrains s.r.o.
35
*
@@ -17,14 +19,21 @@
1719
buildscript {
1820
repositories {
1921
jcenter()
22+
maven { url "https://packages.jetbrains.team/maven/p/jcs/maven" }
2023
}
2124
dependencies {
22-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
25+
classpath 'com.jetbrains:jet-sign:38'
2326
}
2427
}
2528

29+
plugins {
30+
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
31+
}
32+
2633
ext.projectVersion = projectVersion
27-
if (System.getenv('BINTRAY_USER') == null) {
34+
ext.publishingUser = System.getenv('PUBLISHING_USER')
35+
ext.publishingPassword = System.getenv('PUBLISHING_PASSWORD')
36+
if (ext.publishingPassword == null) {
2837
ext.projectVersion = ext.projectVersion + '-SNAPSHOT'
2938
}
3039
println "##teamcity[setParameter name='java.annotations.version' value='$projectVersion']"
@@ -34,10 +43,19 @@ allprojects {
3443
version rootProject.ext.projectVersion
3544
}
3645

46+
nexusPublishing {
47+
repositories {
48+
sonatype {
49+
username = rootProject.ext.publishingUser
50+
password = rootProject.ext.publishingPassword
51+
}
52+
}
53+
}
54+
3755
subprojects {
3856
apply plugin: 'java'
3957
apply plugin: 'maven-publish'
40-
apply plugin: 'com.jfrog.bintray'
58+
apply plugin: 'signing'
4159

4260
repositories {
4361
mavenCentral()
@@ -82,6 +100,8 @@ configure([project(':java5'), project(':java8')]) {
82100
publishing {
83101
publications {
84102
mavenJava(MavenPublication) {
103+
group rootProject.group
104+
version rootProject.ext.projectVersion
85105
artifactId archivesBaseName
86106
artifact mainJar
87107
artifact sourceJar {
@@ -122,20 +142,9 @@ configure([project(':java5'), project(':java8')]) {
122142
}
123143
}
124144
}
125-
if (System.getenv('BINTRAY_USER') != null) {
126-
bintray {
127-
user = System.getenv('BINTRAY_USER')
128-
key = System.getenv('BINTRAY_KEY')
129-
publish = true
130-
publications = ['mavenJava']
131-
pkg {
132-
userOrg = 'jetbrains'
133-
repo = 'intellij-redist'
134-
name = 'org.jetbrains:' + archivesBaseName
135-
version {
136-
name = rootProject.ext.projectVersion
137-
}
138-
}
139-
}
145+
146+
signing {
147+
sign publishing.publications
148+
signatories = new GpgSignSignatoryProvider()
140149
}
141150
}

‎gradle/wrapper/gradle-wrapper.jar

1.38 KB
Binary file not shown.

‎gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ distributionBase=GRADLE_USER_HOME
1919
distributionPath=wrapper/dists
2020
zipStoreBase=GRADLE_USER_HOME
2121
zipStorePath=wrapper/dists
22-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-all.zip
22+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip

‎gradlew

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ APP_NAME="Gradle"
2828
APP_BASE_NAME=`basename "$0"`
2929

3030
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS=""
31+
DEFAULT_JVM_OPTS='"-Xmx64m"'
3232

3333
# Use the maximum available, or set MAX_FD != -1 to use that value.
3434
MAX_FD="maximum"

‎gradlew.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
1414
set APP_HOME=%DIRNAME%
1515

1616
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
17+
set DEFAULT_JVM_OPTS="-Xmx64m"
1818

1919
@rem Find java.exe
2020
if defined JAVA_HOME goto findJavaFromJavaHome

0 commit comments

Comments
 (0)