-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (73 loc) · 1.65 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
82
83
84
85
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.freefair.gradle:lombok-plugin:5.3.3.3"
classpath "com.github.breadmoirai:github-release:2.2.12"
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'io.freefair.lombok'
apply plugin: "com.github.breadmoirai.github-release"
repositories {
flatDir {
dirs 'deps'
}
mavenCentral()
}
dependencies {
compile 'com.google.code.gson:gson:2.10'
compile 'commons-io:commons-io:2.11.0'
compile 'commons-codec:commons-codec:1.15'
}
jar {
classifier = 'bin'
baseName = archivesBaseName
}
task fatJar(type: Jar, dependsOn: 'jar') {
baseName = archivesBaseName
inputs.file jar.archivePath
from(configurations.compile.collect { zipTree(it).matching { exclude 'META-INF/**' } })
classifier = 'all'
}
githubRelease {
if (findProperty('githubKey')) {
token githubKey
} else {
token '0'
}
owner "Aizistral-Studios"
repo "Fetch-Deploy"
tagName project.version
targetCommitish "master"
releaseName "Fetch Deploy " + project.version
body new File('docs/CHANGELOG.md').getText('UTF-8')
draft false
prerelease false
releaseAssets(jar.archivePath, fatJar.archivePath)
overwrite false
dryRun false
apiEndpoint "https://api.github.com"
client
}
tasks.named('githubRelease').get().dependsOn('fatJar')
task upload {
dependsOn('githubRelease')
}
tasks.withType(Jar) {
manifest {
attributes([
"Main-Class": "com.aizistral.fetchdeploy.FetchDeploy"
])
}
}
fatJar.doFirst {
from zipTree(jar.archivePath)
}
artifacts {
archives fatJar
}