-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
80 lines (67 loc) · 1.38 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
plugins {
id 'java-library'
id 'maven-publish'
id 'jacoco'
id 'org.gradlex.extra-java-module-info' version '1.9'
}
group = 'net.shrimpworks'
version = "1.13"
if (System.getenv().containsKey("BUILD_NUMBER")) {
version += ".${System.env.BUILD_NUMBER}"
} else version += ".DEV"
compileJava {
options.release = 21
}
repositories {
mavenCentral()
}
publishing {
repositories {
maven {
name = "ShrimpWorks"
url = 'https://code.shrimpworks.za.net/artefacts/'
authentication {
basic(BasicAuthentication)
}
credentials(PasswordCredentials) {
username = "${System.env.ARTEFACTS_USER}"
password = "${System.env.ARTEFACTS_PASSWORD}"
}
}
}
publications {
maven(MavenPublication) {
from components.java
}
}
}
dependencies {
implementation('org.anarres.lzo:lzo-core:1.0.6') {
exclude group: 'com.google.code.findbugs', module: 'annotations'
exclude group: 'commons-logging', module: 'commons-logging'
}
testImplementation('org.junit.jupiter:junit-jupiter:5.11.4')
}
extraJavaModuleInfo {
// failOnMissingModuleInfo.set(false)
module("org.anarres.lzo:lzo-core", "lzo.core") {
exports("org.anarres.lzo")
requires("java.base")
}
}
jar {
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
}
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.required = true
}
}