|
1 | | -allprojects { |
2 | | - version = "1.0.0" |
3 | | - apply plugin: "java" |
4 | | -} |
5 | | - |
6 | | -subprojects { |
7 | | - apply plugin: "java" |
8 | | - apply plugin: "jacoco" |
9 | | - apply plugin: "maven" |
10 | | - apply plugin: "maven-publish" |
11 | | - |
12 | | - sourceCompatibility = JavaVersion.VERSION_1_8 |
13 | | - targetCompatibility = JavaVersion.VERSION_1_8 |
14 | | - |
15 | | - [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' |
16 | | - |
17 | | - buildscript { |
18 | | - repositories { |
19 | | - mavenCentral() |
20 | | - maven { |
21 | | - url "https://plugins.gradle.org/m2/" |
22 | | - } |
23 | | - } |
24 | | - dependencies { |
25 | | - classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.1' |
26 | | - classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2" |
27 | | - } |
28 | | - } |
29 | | - |
30 | | - repositories { |
31 | | - mavenLocal() |
32 | | - mavenCentral() |
33 | | - maven { url 'https://repo.spring.io/plugins-release' } |
34 | | - } |
35 | | - |
36 | | - dependencies { |
37 | | - compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25' |
38 | | - compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.25' |
39 | | - compile "org.slf4j:jcl-over-slf4j:1.7.25" |
40 | | - compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.9' |
41 | | - compileOnly 'org.projectlombok:lombok:1.18.12' |
42 | | - annotationProcessor 'org.projectlombok:lombok:1.18.12' |
43 | | - testCompileOnly 'org.projectlombok:lombok:1.18.12' |
44 | | - testAnnotationProcessor 'org.projectlombok:lombok:1.18.12' |
45 | | - compile group: 'com.google.guava', name: 'guava', version: '24.1-jre' |
46 | | - compile "com.google.code.findbugs:jsr305:3.0.0" |
47 | | - compile group: 'org.springframework', name: 'spring-context', version: '5.3.18' |
48 | | - compile group: 'org.springframework', name: 'spring-tx', version: '5.3.18' |
49 | | - compile "org.apache.commons:commons-lang3:3.4" |
50 | | - compile group: 'org.apache.commons', name: 'commons-math', version: '2.2' |
51 | | - compile "org.apache.commons:commons-collections4:4.1" |
52 | | - compile group: 'joda-time', name: 'joda-time', version: '2.3' |
53 | | - |
54 | | - } |
55 | | - |
56 | | - task sourcesJar(type: Jar, dependsOn: classes) { |
57 | | - classifier = "sources" |
58 | | - from sourceSets.main.allSource |
59 | | - } |
60 | | - |
61 | | - |
62 | | - tasks.withType(AbstractArchiveTask) { |
63 | | - preserveFileTimestamps = false |
64 | | - reproducibleFileOrder = true |
65 | | - } |
66 | | - |
67 | | - configurations.all { |
68 | | - resolutionStrategy { |
69 | | - force group: 'com.google.guava', name: 'guava', version: '30.1-jre' |
70 | | - } |
71 | | - } |
72 | | -} |
73 | | - |
74 | | -task copyToParent(type: Copy) { |
75 | | - into "$buildDir/libs" |
76 | | - subprojects { |
77 | | - from tasks.withType(Jar) |
78 | | - } |
79 | | -} |
80 | | - |
81 | | -build.finalizedBy(copyToParent) |
82 | | - |
| 1 | +allprojects { |
| 2 | + version = "1.0.0" |
| 3 | + apply plugin: "java" |
| 4 | +} |
| 5 | + |
| 6 | +subprojects { |
| 7 | + apply plugin: "java" |
| 8 | + apply plugin: "jacoco" |
| 9 | + apply plugin: "maven" |
| 10 | + apply plugin: "maven-publish" |
| 11 | + |
| 12 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 13 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 14 | + |
| 15 | + [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' |
| 16 | + |
| 17 | + buildscript { |
| 18 | + repositories { |
| 19 | + mavenCentral() |
| 20 | + maven { url 'https://jitpack.io' } |
| 21 | + maven { |
| 22 | + url "https://plugins.gradle.org/m2/" |
| 23 | + } |
| 24 | + } |
| 25 | + dependencies { |
| 26 | + classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.1' |
| 27 | + classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2" |
| 28 | + } |
| 29 | + } |
| 30 | + |
| 31 | + repositories { |
| 32 | + mavenLocal() |
| 33 | + mavenCentral() |
| 34 | + maven { url 'https://repo.spring.io/plugins-release' } |
| 35 | + maven { url 'https://jitpack.io' } |
| 36 | + } |
| 37 | + |
| 38 | + dependencies { |
| 39 | + compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25' |
| 40 | + compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.25' |
| 41 | + compile "org.slf4j:jcl-over-slf4j:1.7.25" |
| 42 | + compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.9' |
| 43 | + compileOnly 'org.projectlombok:lombok:1.18.12' |
| 44 | + annotationProcessor 'org.projectlombok:lombok:1.18.12' |
| 45 | + testCompileOnly 'org.projectlombok:lombok:1.18.12' |
| 46 | + testAnnotationProcessor 'org.projectlombok:lombok:1.18.12' |
| 47 | + compile group: 'com.google.guava', name: 'guava', version: '24.1-jre' |
| 48 | + compile "com.google.code.findbugs:jsr305:3.0.0" |
| 49 | + compile group: 'org.springframework', name: 'spring-context', version: '5.3.18' |
| 50 | + compile group: 'org.springframework', name: 'spring-tx', version: '5.3.18' |
| 51 | + compile "org.apache.commons:commons-lang3:3.4" |
| 52 | + compile group: 'org.apache.commons', name: 'commons-math', version: '2.2' |
| 53 | + compile "org.apache.commons:commons-collections4:4.1" |
| 54 | + compile group: 'joda-time', name: 'joda-time', version: '2.3' |
| 55 | + |
| 56 | + } |
| 57 | + |
| 58 | + task sourcesJar(type: Jar, dependsOn: classes) { |
| 59 | + classifier = "sources" |
| 60 | + from sourceSets.main.allSource |
| 61 | + } |
| 62 | + |
| 63 | + |
| 64 | + tasks.withType(AbstractArchiveTask) { |
| 65 | + preserveFileTimestamps = false |
| 66 | + reproducibleFileOrder = true |
| 67 | + } |
| 68 | + |
| 69 | + configurations.all { |
| 70 | + resolutionStrategy { |
| 71 | + force group: 'com.google.guava', name: 'guava', version: '30.1-jre' |
| 72 | + } |
| 73 | + } |
| 74 | +} |
| 75 | + |
| 76 | +task copyToParent(type: Copy) { |
| 77 | + into "$buildDir/libs" |
| 78 | + subprojects { |
| 79 | + from tasks.withType(Jar) |
| 80 | + } |
| 81 | +} |
| 82 | + |
| 83 | +build.finalizedBy(copyToParent) |
| 84 | + |
0 commit comments