-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
104 lines (88 loc) · 2.78 KB
/
build.gradle
File metadata and controls
104 lines (88 loc) · 2.78 KB
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
plugins {
id 'xomda-java-library'
}
group = 'org.xomda'
version = libs.versions.xomda.common.java.get()
java {
withSourcesJar()
withJavadocJar()
}
//signing {
// sign configurations.archives
//}
artifacts {
archives jar, javadocJar, sourcesJar
}
// stop complaining when generating javadocs
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
repositories {
mavenLocal()
mavenCentral()
maven {
name 'xomda packages'
url 'https://maven.pkg.github.com/xomda/common-java'
credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
publishing {
publications {
maven(MavenPublication) {
version = libs.versions.xomda.common.java.get()
group 'org.xomda'
from components.java
// snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
pom {
name = 'XOMDA Common Java'
description = 'Common Java Utils'
url = 'http://utils.xomda.org'
scm {
connection = 'scm:git:git://github.com:xomda/common-java.git'
developerConnection = 'scm:git:git://github.com:xomda/common-java.git'
url = 'https://github.com/xomda/common-java/'
}
licenses {
license {
name = 'Mozilla Public License Version 2.0'
url = 'https://raw.githubusercontent.com/xomda/common-java/main/README.md'
}
}
developers {
developer {
id = 'JorisAerts'
name = 'Joris Aerts'
email = '3611758+JorisAerts@users.noreply.github.com'
}
}
}
}
}
repositories {
mavenLocal()
/*
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.findProperty("ossrh.username") ?: System.getenv("MAVEN_USERNAME")
password = project.findProperty("ossrh.password") ?: System.getenv("MAVEN_PASSWORD")
}
}
*/
maven {
url = "https://maven.pkg.github.com/xomda/common-java"
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.token") ?: System.getenv("TOKEN")
}
}
}
}
dependencies {
testImplementation libs.junit.jupiter
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}