-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (60 loc) · 2.02 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
plugins {
id 'com.diffplug.blowdryer'
id 'com.diffplug.spotless-changelog'
}
spotlessChangelog {
tagMessage '{{changes}}'
runAfterPush "gh release create release/{{version}} --title 'v{{version}}' --notes-from-tag"
}
repositories { mavenCentral() }
group = 干.proj('maven_group', 'the maven group, recommend com.diffplug')
allprojects {
apply from: 干.file('base/changelog.gradle')
}
apply from: 干.file('base/sonatype.gradle')
String VER_JUNIT_JUPITER = '5.11.4'
subprojects {
apply from: 干.file('base/java.gradle')
apply from: 干.file('base/kotlin.gradle')
apply from: 干.file('spotless/java.gradle')
apply plugin: 'java-library'
repositories { mavenCentral() }
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:${VER_JUNIT_JUPITER}"
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
}
if (it.name == 'atplug-runtime') {
ext.maven_name = 'AtPlug runtime'
apply plugin: 'kotlinx-serialization'
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3"
}
} else if (it.name == 'atplug-test-harness') {
ext.maven_name='AtPlug test harness'
dependencies {
compileOnly "org.junit.jupiter:junit-jupiter-api:5.11.4"
implementation "org.jetbrains.kotlin:kotlin-reflect:2.1.0"
implementation project(':atplug-runtime')
}
} else if (it.name == 'atplug-plugin-gradle') {
ext.maven_name='AtPlug metadata generation Gradle plugin'
apply from: 干.file('base/gradle-plugin.gradle')
dependencies {
implementation "org.ow2.asm:asm:9.7.1"
implementation 'com.diffplug.gradle:goomph:4.2.0'
testImplementation 'org.assertj:assertj-core:3.27.0'
}
tasks.named('test') {
dependsOn ':atplug-runtime:jar', ':atplug-runtime:testClasses'
}
} else {
throw new IllegalArgumentException("Unexpected project " + it.name)
}
ext.maven_desc = ext.maven_name
tasks.named('test', Test) {
useJUnitPlatform {}
}
// it all needs to get published and formatted
apply from: 干.file('base/maven.gradle')
apply from: 干.file('base/sonatype.gradle')
}