-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
81 lines (71 loc) · 2.98 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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '4.24.16'
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'project-report'
version = project.findProperty('projectVersion') ?: '1.0-SNAPSHOT'
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
mavenLocal()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
jar {
/**
* Execution failed for task ':eccount-rest-schema:jar'.
> Entry META-INF/services/javax.annotation.processing.Processor is a duplicate but no duplicate handling strategy has been set.
Please refer to https://docs.gradle.org/7.0/dsl/org.gradle.api.file.CopySpec.html#org.gradle.api.file.CopySpec:duplicatesStrategy
for details.
Encountered duplicate path "META-INF/LICENSE.txt" during copy operation configured with DuplicatesStrategy.WARN
Encountered duplicate path "META-INF/NOTICE.txt" during copy operation configured with DuplicatesStrategy.WARN
Encountered duplicate path "META-INF/LICENSE" during copy operation configured with DuplicatesStrategy.WARN
Encountered duplicate path "META-INF/NOTICE" during copy operation configured with DuplicatesStrategy.WARN
Encountered duplicate path "META-INF/INDEX.LIST" during copy operation configured with DuplicatesStrategy.WARN
Encountered duplicate path "META-INF/io.netty.versions.properties" during copy operation configured with DuplicatesStrategy.WARN
*/
// duplicatesStrategy = DuplicatesStrategy.INCLUDE
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': project.version
// 'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' '),
// 'Main-Class': 'com.api.RESTApplication'
)
}
/**
* two JARs are built
* $ ls -l eccount-rest-server/build/libs/
-rw-r--r-- 1 prayagupd NA\Domain Users 7102 Sep 14 14:56 eccount-rest-server-1.0-SNAPSHOT-plain.jar
-rw-r--r-- 1 prayagupd NA\Domain Users 31661792 Sep 14 14:55 eccount-rest-server-1.0-SNAPSHOT.jar
*/
// from {
// configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
// }
}
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
}
}
gradle.afterProject { project ->
if (project.state.failure) {
println "Evaluation of $project FAILED"
} else {
println "Evaluation of $project succeeded"
}
}