-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (49 loc) · 1.22 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
buildscript {
repositories {
mavenCentral()
maven {
url "http://repository.jboss.org/nexus/content/groups/public/"
}
}
}
plugins {
//id 'maven'
id 'com.github.johnrengelman.shadow' version '4.0.4'
id 'ninja.miserable.blossom' version '1.0.1'
}
group = 'io.github.polymeta'
version = '1.0.5'
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
compileJava {
sourceCompatibility = targetCompatibility = "1.8"
}
subprojects {
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
ext {
sponge = "7.2.0"
}
version = '1.0.5'
group = 'io.github.polymeta'
repositories {
mavenCentral()
maven { url = 'https://jitpack.io' }
}
dependencies {
}
}
task copyJars(type: Copy) {
dependsOn subprojects.build
from subprojects.collect { it.tasks.withType(Jar) }
into "$buildDir/allJars"
exclude '*-all.jar'
exclude '*-sources.jar'
exclude 'common*.jar'
exclude 'reforged*.jar'
exclude 'generations*.jar'
}
build.dependsOn shadowJar
build.dependsOn copyJars