1- apply plugin : ' java-library'
2- apply plugin : ' idea'
3- apply plugin : ' maven'
1+ plugins {
2+ id " java-library"
3+ id " maven-publish"
4+ id " idea"
5+ }
46
57repositories {
68 mavenCentral()
79}
810
9- test {
10- useJUnitPlatform()
11- }
11+ group = " org.indilib.i4j "
12+ description = " INDIForJava-core "
13+ version = " 2.0.1 "
1214
1315sourceCompatibility = 1.8
1416targetCompatibility = 1.8
1517
16- group ' org.indilib.i4j'
17- description = ' INDIForJava-core'
18- version ' 2.0.1'
19-
2018dependencies {
21- api ' org.slf4j:slf4j-api:1.7.30 '
22- api ' org.glassfish.tyrus:tyrus-client:2.0.0'
23- implementation(' com.thoughtworks.xstream:xstream:1.4.15 ' )
19+ api " org.slf4j:slf4j-api:1.7.32 "
20+ api " org.glassfish.tyrus:tyrus-client:2.0.0"
21+ implementation(" com.thoughtworks.xstream:xstream:1.4.18 " )
2422}
2523
2624jar {
2725 archivesBaseName = project. name
2826 duplicatesStrategy = DuplicatesStrategy . EXCLUDE
2927 manifest {
30- from ' META-INF/MANIFEST.MF'
28+ from " META-INF/MANIFEST.MF"
3129 }
3230}
3331
@@ -47,6 +45,7 @@ task fatJar(type: Jar, dependsOn: classes) {
4745 classifier " sources"
4846 extension " jar"
4947 destinationDirectory = file(" build/" )
48+ duplicatesStrategy = DuplicatesStrategy . EXCLUDE
5049 from {
5150 configurations. runtimeClasspath. collect { it. isDirectory() ? it : zipTree(it) }
5251 }
@@ -56,33 +55,31 @@ artifacts {
5655 archives javadocJar, sourcesJar
5756}
5857
59- configure(install. repositories. mavenInstaller) {
60- pom. project {
61- inceptionYear = ' 2012'
62- name = project. name
63- packaging = ' jar'
64- description = project. description
65-
66- url = ' https://github.com/INDIForJava/INDIForJava-core'
67-
68- scm {
69- connection = ' git@github.com:INDIForJava/INDIForJava-core.git'
70- developerConnection = ' git@github.com:INDIForJava/INDIForJava-core.git'
71- url = ' https://github.com/INDIForJava/INDIForJava-core'
72- }
73-
74- licenses {
75- license {
76- name = ' GNU Lesser General Public License'
77- url = ' https://www.gnu.org/licenses/lgpl-3.0.txt'
78- }
79- }
80-
81- developers {
82- developer {
83- id = ' marcocipriani01'
84- name = ' Marco Cipriani'
85- email = ' marco.cipriani.01@gmail.com'
58+ publishing {
59+ publications {
60+ mavenJava(MavenPublication ) {
61+ pom {
62+ name = project. name
63+ description = " INDIForJava is a set of libraries to implement clients and servers that follow the INDI protocol, designed to operate astronomical instrumentation."
64+ url = " https://github.com/INDIForJava/INDIForJava-core"
65+ licenses {
66+ license {
67+ name = " GNU Lesser General Public License"
68+ url = " https://www.gnu.org/licenses/lgpl-3.0.txt"
69+ }
70+ }
71+ developers {
72+ developer {
73+ id = " marcocipriani01"
74+ name = " Marco Cipriani"
75+ email = " marco.cipriani.01@gmail.com"
76+ }
77+ }
78+ scm {
79+ connection = " scm:git:git://github.com/INDIForJava/INDIForJava-core.git"
80+ developerConnection = " scm:git:ssh://github.com/INDIForJava/INDIForJava-core.git"
81+ url = " https://github.com/INDIForJava/INDIForJava-core"
82+ }
8683 }
8784 }
8885 }
0 commit comments