@@ -2,15 +2,18 @@ plugins {
2
2
id ' java'
3
3
id " com.diffplug.gradle.spotless" version " 4.4.0"
4
4
id " maven-publish"
5
+ id " signing"
5
6
id " jacoco"
6
7
}
7
8
8
9
group ' org.fairdatapipeline'
9
- version ' 0 .0.2 '
10
+ version ' 1 .0.0-alpha '
10
11
11
12
java {
12
13
sourceCompatibility = JavaVersion . VERSION_11
13
14
targetCompatibility = JavaVersion . VERSION_11
15
+ withJavadocJar()
16
+ withSourcesJar()
14
17
}
15
18
16
19
repositories {
@@ -43,24 +46,6 @@ spotless {
43
46
}
44
47
}
45
48
46
- publishing {
47
- repositories {
48
- maven {
49
- name = " GitHubPackages"
50
- url = uri(" https://maven.pkg.github.com/FAIRDataPipeline/javaDataPipeline" )
51
- credentials {
52
- username = project. findProperty(" gpr.user" ) ?: System . getenv(" PUBLISH_USERNAME" )
53
- password = project. findProperty(" gpr.key" ) ?: System . getenv(" PUBLISH_TOKEN" )
54
- }
55
- }
56
- }
57
- publications {
58
- gpr(MavenPublication ) {
59
- from(components. java)
60
- }
61
- }
62
- }
63
-
64
49
test {
65
50
useJUnitPlatform()
66
51
testLogging {
@@ -74,4 +59,63 @@ jacocoTestReport {
74
59
xml. enabled true
75
60
html. enabled false
76
61
}
77
- }
62
+ }
63
+
64
+ publishing {
65
+ publications {
66
+ mavenJava(MavenPublication ) {
67
+ artifactId = ' dataregistry'
68
+ from components. java
69
+ versionMapping {
70
+ usage(' java-api' ) {
71
+ fromResolutionOf(' runtimeClasspath' )
72
+ }
73
+ usage(' java-runtime' ) {
74
+ fromResolutionResult()
75
+ }
76
+ }
77
+ pom {
78
+ name = ' javaDataPipeline Dataregistry'
79
+ description = ' The library used by javaDataPipeline API to access the FAIR DataPipeline Registry'
80
+ url = ' http://www.fairdatapipeline.org/'
81
+ licenses {
82
+ license {
83
+ name = ' GNU GENERAL PUBLIC LICENSE, Version 3.0'
84
+ url = ' https://www.gnu.org/licenses/gpl-3.0.html'
85
+ }
86
+ }
87
+ organization {
88
+ name = ' THE SCOTTISH COVID-19 RESPONSE CONSORTIUM'
89
+ url = ' https://www.gla.ac.uk/research/az/scrc/'
90
+ }
91
+ developers {
92
+ developer {
93
+ id = ' bram'
94
+ name = ' Bram Boskamp'
95
+ email = ' bram@boska.mp'
96
+ organization = ' Biomathematics and Statistics Scotland'
97
+ organizationUrl = ' https://www.bioss.ac.uk/'
98
+ }
99
+ }
100
+ scm {
101
+ connection = ' scm:git:https://github.com/FAIRDataPipeline/javaDataPipeline.git'
102
+ developerConnection = ' scm:git:https://github.com/FAIRDataPipeline/javaDataPipeline.git'
103
+ url = ' https://github.com/FAIRDataPipeline/javaDataPipeline'
104
+ }
105
+ }
106
+ }
107
+ }
108
+ repositories {
109
+ maven {
110
+ url = ' https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
111
+ credentials {
112
+ username ossrhUsername
113
+ password ossrhPassword
114
+ }
115
+ }
116
+ }
117
+ }
118
+
119
+ signing {
120
+ sign publishing. publications. mavenJava
121
+ }
0 commit comments