-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
49 lines (42 loc) · 1.01 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
plugins {
id 'java'
id 'eclipse'
id 'idea'
id "com.github.ben-manes.versions" version "0.13.0"
//id "com.jfrog.bintray" version "1.7.2"
//id 'nebula.maven-publish' version '4.9.1'
//id 'nebula.nebula-bintray' version '3.5.2'
}
group = 'io.github.datasays'
version = '1.1'
description = """DataSays wES"""
subprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = "UTF-8"
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
mavenLocal()
//mavenCentral()
jcenter()
}
task listJars {
doLast {
def sw = new StringWriter()
configurations.compile.each { File file ->
sw.write(file.toString() + '\n')
}
def allJarsFile = new File("./AllJars.txt")
allJarsFile.write(sw.toString())
}
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
}