-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
63 lines (58 loc) · 2.31 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
plugins {
id 'com.diffplug.blowdryer'
id 'com.diffplug.spotless-changelog'
}
allprojects {
apply from: 干.file('base/changelog.gradle')
}
apply from: 干.file('spotless/freshmark.gradle')
ext.javadoc_agg='spotless-changelog-lib spotless-changelog-plugin-gradle'
apply from: 干.file('base/javadoc-agg.gradle')
subprojects {
apply from: 干.file('base/java8.gradle')
apply from: 干.file('spotless/java.gradle')
if (it.name == 'spotless-changelog-lib') {
ext.maven_name='Spotless Changelog Lib'
ext.maven_desc='Utilities for parsing and updating a changelog'
dependencies {
compileOnly 'pl.tlinkowski.annotation:pl.tlinkowski.annotation.basic:0.2.0'
testCompileOnly 'pl.tlinkowski.annotation:pl.tlinkowski.annotation.basic:0.2.0'
implementation 'org.osgi:org.osgi.framework:1.9.0'
implementation 'com.diffplug.durian:durian-core:1.2.0'
implementation 'com.diffplug.durian:durian-collect:1.2.0'
implementation 'com.diffplug.durian:durian-io:1.2.0'
implementation "org.eclipse.jgit:org.eclipse.jgit:${VER_JGIT}"
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:3.14.0'
}
} else {
assert it.name == 'spotless-changelog-plugin-gradle'
ext.maven_name='Spotless Changelog Gradle Plugin'
ext.maven_desc='Gradle plugin for parsing and updating a changelog'
apply from: 干.file('base/gradle-plugin.gradle')
sourceSets {
functionalTest {
compileClasspath += sourceSets.main.compileClasspath
runtimeClasspath += sourceSets.main.runtimeClasspath
}
}
dependencies {
implementation project(':spotless-changelog-lib')
implementation 'com.diffplug.durian:durian-core:1.2.0'
implementation 'com.diffplug.durian:durian-collect:1.2.0'
implementation 'com.diffplug.durian:durian-io:1.2.0'
implementation "org.eclipse.jgit:org.eclipse.jgit:${VER_JGIT}"
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:3.14.0'
// mock out the time
implementation 'com.diffplug.durian-globals:durian-globals:1.0.0'
functionalTestImplementation 'com.diffplug.durian-globals:durian-globals.dev:1.0.0'
}
gradlePlugin {
pluginSourceSet project.sourceSets.functionalTest
}
}
// it all needs to get published and formatted
apply from: 干.file('base/maven.gradle')
apply from: 干.file('base/bintray.gradle')
}