This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle
79 lines (61 loc) · 1.7 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
plugins {
id 'java'
id 'eclipse'
id 'maven'
id 'com.github.hierynomus.license' version '0.12.1'
id 'net.ellune.blossom' version '1.0.1'
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
group 'io.github.flibio'
defaultTasks 'licenseFormat', 'shadowJar'
repositories {
mavenCentral()
jcenter()
maven {
name 'Sponge API repo'
url 'http://repo.spongepowered.org/maven'
}
maven { url "https://jitpack.io" }
}
dependencies {
compile "org.spongepowered:spongeapi:${project.apiVersion}"
compile 'com.github.flibiostudio:utils:164f3b6'
}
shadowJar {
def bVer = System.getenv("BUILD_NUMBER") ?: version
def buildNumber = ''
if (System.getenv("TRAVIS") != null) {
buildNumber = '-BUILD'
}
archiveName = "EconomyLite-${project.apiVersion.minus("-SNAPSHOT")}-${bVer}${buildNumber}.jar"
dependencies {
include dependency('com.github.flibiostudio:utils')
}
relocate 'io.github.flibio.utils', 'io.github.flibio.economylite.utils'
}
artifacts {
archives shadowJar
}
license {
// The project properties to use
ext.name = project.name
// The file that contains the license header
header file('HEADER.txt')
// The source sets to apply the license to
sourceSets = project.sourceSets
// Exclude properties files
exclude "**/*.properties"
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}
blossom {
replaceToken '@project.version@', project.version, 'src/main/java/io/github/flibio/economylite/PluginInfo.java'
}