-
Notifications
You must be signed in to change notification settings - Fork 105
/
build.gradle
74 lines (64 loc) · 1.93 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
plugins {
id 'com.gradleup.shadow' version '8.3.5' apply false
id 'maven-publish'
id 'signing'
id 'org.openjfx.javafxplugin' version '0.1.0' apply false
}
group = 'pro.gravit.launcher'
version = '5.7.0-SNAPSHOT'
apply from: 'props.gradle'
configure(subprojects.findAll { it.name != 'modules' }) {
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'java-library'
group = 'pro.gravit'
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/groups/public' }
maven {
url "https://clojars.org/repo/"
}
maven {
url "https://jcenter.bintray.com/"
}
maven {
url "https://jitpack.io/"
}
}
jar {
duplicatesStrategy = 'EXCLUDE'
}
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
tasks.withType(JavaCompile).tap {
configureEach {
options.encoding = "UTF-8"
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
options.incremental = true // one flag, and things will get MUCH faster
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
}
}
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
defaultTasks 'build'
if (hasProperty('mavenUsername') && hasProperty('mavenPassword') && hasProperty('mavenReleaseRepository') && hasProperty('mavenSnapshotRepository')) {
publishing {
repositories {
maven {
url = version.endsWith('SNAPSHOT') ? getProperty('mavenSnapshotRepository') : getProperty('mavenReleaseRepository')
credentials {
username getProperty('mavenUsername')
password getProperty('mavenPassword')
}
}
}
}
}