-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
67 lines (57 loc) · 1.82 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
plugins {
id 'java'
id 'idea'
id 'com.github.johnrengelman.shadow' version '8.0.0'
id 'maven-publish'
id "com.diffplug.spotless" version "6.13.0"
}
group maven_group
version "${version_major}.${version_minor}.${version_patch}"
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
configurations {
shadeMe
implementation.extendsFrom shadeMe
}
repositories {
mavenCentral()
}
dependencies {
shadeMe group: 'commons-io', name: 'commons-io', version: apache_commons
shadeMe group: 'net.sf.trove4j', name: 'trove4j', version: trove4j
shadeMe group: 'com.google.code.gson', name: 'gson', version: gson
shadeMe group: 'org.apache.httpcomponents', name: 'httpmime', version: httpmime
shadeMe group: 'org.apache.httpcomponents.client5', name: 'httpclient5', version: httpclient
shadeMe group: 'org.jetbrains', name: 'annotations', version: jetbrains
// Logging
shadeMe group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4j
shadeMe group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j
shadeMe group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: log4j
}
shadowJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations = [project.configurations.shadeMe]
archiveClassifier.set(null)
}
jar.finalizedBy(shadowJar)
spotless {
java {
targetExclude("src/test/**")
licenseHeaderFile(rootProject.file("HEADER")).yearSeparator("-")
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact shadowJar
}
}
repositories {
maven {
url System.getenv('MAVEN_URL')
credentials {
username System.getenv('MAVEN_USER')
password System.getenv('MAVEN_PASS')
}
}
}
}