-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
109 lines (81 loc) · 2.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//file:noinspection GroovyAssignabilityCheck
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.javamodularity:moduleplugin:1.8.12"
}
}
plugins {
id 'com.gradle.plugin-publish' version '0.21.0'
}
project.description 'Rhizomatic'
def junitVersion = '5.8.2'
subprojects {
group 'io.rhizomatic'
version '0.3.6'
repositories {
mavenCentral()
mavenLocal()
}
apply plugin: 'java-library'
apply plugin: "org.javamodularity.moduleplugin"
apply plugin: 'maven-publish'
tasks.withType(Javadoc).all { enabled = false } // disable javadoc due to Gradle Java9 issue
tasks.withType(JavaCompile) {
sourceCompatibility = '11'
targetCompatibility = '11'
}
test {
useJUnitPlatform()
}
dependencies {
api 'org.jetbrains:annotations:24.0.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:' + junitVersion
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:' + junitVersion
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
}
def pomConfig = {
licenses {
license {
name 'MIT'
url 'https://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'rhizomatic-io'
name 'Rhizomatic'
email "dev@null.com"
}
}
scm {
url 'https://github.com/Rhizomatic-IO/rhizomatic'
}
}
if (!name.equals("rhizomatic-assembly")) { // avoid Gradle duplicate publication warning
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom.withXml {
def root = asNode()
root.appendNode('description', 'Rhizomatic modular runtime')
root.appendNode('name', 'Rhizomatic')
root.appendNode('url', 'https://github.com/Rhizomatic-IO/rhizomatic')
root.children().last() + pomConfig
}
}
}
}
}
}