@@ -2,24 +2,16 @@ buildscript {
2
2
repositories {
3
3
mavenCentral()
4
4
}
5
-
6
- dependencies {
7
- classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:4.2.0'
8
- }
9
5
}
10
6
11
7
plugins {
12
- id 'com.adarshr.test-logger' version '1.7.0'
13
- id 'maven-publish'
14
-
15
- id 'com.jfrog.bintray' version '1.8.4'
8
+ id "java-library"
9
+ id "com.adarshr.test-logger" version "2.1.1"
10
+ id "maven-publish"
11
+ id "signing"
12
+ id "biz.aQute.bnd.builder" version "5.3.0"
16
13
}
17
14
18
- apply plugin: 'java'
19
- apply plugin: 'java-library'
20
- apply plugin: 'biz.aQute.bnd.builder'
21
-
22
-
23
15
version = '4.0.0'
24
16
group = 'com.github.tschoonj'
25
17
sourceCompatibility = '1.8'
@@ -34,9 +26,9 @@ repositories {
34
26
35
27
dependencies {
36
28
api 'org.apache.commons:commons-math3:3.6.1'
37
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.2 '
38
- testImplementation 'org.junit.jupiter:junit-jupiter-params:5.4.2 '
39
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.2 '
29
+ testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1 '
30
+ testImplementation 'org.junit.jupiter:junit-jupiter-params:5.7.1 '
31
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.1 '
40
32
}
41
33
42
34
sourceSets {
@@ -136,22 +128,18 @@ publishing {
136
128
}
137
129
}
138
130
}
139
- }
140
-
141
- bintray {
142
- user = 'tschoonj'
143
- key = System.getenv('BINTRAY_KEY')
144
- pkg {
145
- repo = 'maven'
146
- name = 'xraylib'
147
- userOrg = 'tschoonj'
148
- licenses = ['BSD 3-Clause']
149
- vcsUrl = 'https://github.com/tschoonj/xraylib.git'
150
- version {
151
- name = project.version
152
- released = new Date()
131
+ repositories {
132
+ maven {
133
+ name = 'Sonatype'
134
+ url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
135
+ credentials {
136
+ username System.getenv('SONATYPE_USERNAME')
137
+ password System.getenv('SONATYPE_PASSWORD')
138
+ }
153
139
}
154
140
}
155
- // Upload the 'maven' publication i.e jar, sourcesJar, javadocJar, POM
156
- publications = ['maven']
157
141
}
142
+
143
+ signing {
144
+ sign publishing.publications.maven
145
+ }
0 commit comments