-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
81 lines (72 loc) · 2.47 KB
/
build.gradle.kts
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
/*
* e2immu: a static code analyser for effective and eventual immutability
* Copyright 2020-2021, Bart Naudts, https://www.e2immu.org
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details. You should have received a copy of the GNU Lesser General Public
* License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
plugins {
`java-library`
`maven-publish`
}
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.jar {
from(sourceSets.main.get().allSource)
}
tasks.test {
useJUnitPlatform()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2") // EPL v2
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
publishing {
repositories {
mavenLocal()
maven {
url = uri(project.findProperty("publishUri") as String)
credentials {
username = project.findProperty("publishUsername") as String
password = project.findProperty("publishPassword") as String
}
}
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifactId = "e2immu-support"
groupId = "org.e2immu"
version = "0.6.4"
pom {
name = "e2immu graph support"
description = "Helper library for the use with the e2immu analyser"
url = "https://e2immu.org"
licenses {
license {
name = "GNU Lesser General Public License, version 3.0"
url = "https://www.gnu.org/licenses/lgpl-3.0.html"
}
}
developers {
developer {
id = "bnaudts"
name = "Bart Naudts"
email = "bart.naudts@e2immu.org"
}
}
}
}
}
}