Skip to content

Commit 468ed07

Browse files
Test new build.gradle
1 parent b11405b commit 468ed07

File tree

5 files changed

+43
-61
lines changed

5 files changed

+43
-61
lines changed

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/INDIForJava_core_Jar.xml

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 38 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
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

57
repositories {
68
mavenCentral()
79
}
810

9-
test {
10-
useJUnitPlatform()
11-
}
11+
group = "org.indilib.i4j"
12+
description = "INDIForJava-core"
13+
version = "2.0.1"
1214

1315
sourceCompatibility = 1.8
1416
targetCompatibility = 1.8
1517

16-
group 'org.indilib.i4j'
17-
description = 'INDIForJava-core'
18-
version '2.0.1'
19-
2018
dependencies {
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

2624
jar {
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
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)