forked from cansik/artnet4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
110 lines (96 loc) · 3.32 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'ch.bildspur'
version '0.6.3'
sourceCompatibility = 1.8
wrapper {
gradleVersion = '8.6'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-bin.zip"
}
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.13.1'
// xml -> not available in java 11
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0'
implementation group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.3.0'
implementation group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.3.0'
// processing
testImplementation group: 'org.processing', name: 'core', version: '3.3.6'
testImplementation group: 'org.jogamp.jogl', name: 'jogl-all-main', version: '2.3.2'
testImplementation group: 'org.jogamp.gluegen', name: 'gluegen-rt-main', version: '2.3.2'
}
configurations {
jar.archiveBaseName = "artnet4j-${version}.jar"
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
task fatJar(type: Jar) {
archiveBaseName = "artnet4j-${version}.jar"
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
//signing {
// sign publishing.publications
//}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/cansik/artnet4j")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_API_KEY")
}
}
maven {
name = "Maven"
url = uri("https://mvn.imabad.dev/repository/maven-releases/")
credentials {
username = project.findProperty("nexusUsername") ?: System.getenv("NEXUS_USERNAME")
password = project.findProperty("nexusPassword") ?: System.getenv("NEXUS_PASSWORD")
}
}
}
afterEvaluate {
publications {
gpr(MavenPublication) {
from(components.java)
artifact sourcesJar
artifact javadocJar
pom {
name = "ArtNet for Java and Processing"
description = "Art-Net DMX over IP library for Java and Processing."
url = "https://github.com/cansik/artnet4j"
licenses {
license {
name = 'GNU General Public License v3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
developers {
developer {
id = 'cansik'
name = 'bildspur'
email = '[email protected]'
}
}
scm {
connection = 'scm:[email protected]:cansik/artnet4j.git'
url = 'https://github.com/cansik/artnet4j'
}
}
}
}
}
}