@@ -19,28 +19,29 @@ dependencies {
1919}
2020
2121version = System . getenv(" RELEASE_VERSION" ) ?: ' NONE'
22+ group ' dev.personnummer'
2223
2324jar {
2425 manifest {
2526 attributes(' Implementation-Title' : project. name,
26- ' Implementation-Version' : project. version)
27+ ' Implementation-Version' : project. version)
2728 }
2829}
2930
30- task javadocJar (type : Jar ) {
31- archiveClassifier = ' javadoc'
32- from javadoc
33- }
34-
35- task sourcesJar (type : Jar ) {
36- archiveClassifier = ' sources'
37- from sourceSets. main. allSource
31+ java {
32+ withJavadocJar()
33+ withSourcesJar()
3834}
3935
4036artifacts {
4137 archives javadocJar, sourcesJar, jar
4238}
4339
40+ javadoc {
41+ if (JavaVersion . current(). isJava9Compatible()) {
42+ options. addBooleanOption(' html5' , true )
43+ }
44+ }
4445
4546test {
4647 useJUnitPlatform()
@@ -80,13 +81,25 @@ publishing {
8081 from components. java
8182 pom {
8283 name = ' Personnummer'
83- description = ' '
84+ description = ' personnummer is a small open-source project that validates, formatting and determine sex and age from swedish personal identity numbers '
8485 url = ' https://personnummer.dev'
8586 licenses {
8687 license {
8788 name = ' MIT'
89+ url = ' https://mit-license.org/'
8890 }
8991 }
92+ developers {
93+ developer {
94+ id = ' jite'
95+ name = ' Johannes Tegnér'
96+ 97+ }
98+ }
99+ scm {
100+ connection
= ' scm:git:[email protected] :personnummer/java.git' 101+ url = ' https://github.com/personnummer/java'
102+ }
90103 }
91104 }
92105 }
@@ -101,5 +114,5 @@ signing {
101114}
102115
103116tasks. withType(Sign ) {
104- onlyIf { version != " NONE" } // so we can build jars for testing in CI
117+ onlyIf { version != " NONE" }
105118}
0 commit comments