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 5
/
Copy pathbuild.gradle
84 lines (67 loc) · 1.83 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
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 'me.flibio'
version '1.8.1'
defaultTasks 'licenseFormat', 'clean', 'build'
repositories {
mavenCentral()
jcenter()
maven {
name 'Sponge API repo'
url 'http://repo.spongepowered.org/maven'
}
maven {
name = 'minecrell'
url = 'http://repo.minecrell.net/releases'
}
maven { url "https://jitpack.io" }
}
dependencies {
compile "org.spongepowered:spongeapi:${project.apiVersion}"
compile 'com.github.flibiostudio:utils:1.9.0'
}
shadowJar {
def bVer = System.getenv("BUILD_NUMBER") ?: version
def buildNumber = ''
if (System.getenv("TRAVIS") != null) {
buildNumber = '-BUILD'
}
archiveName = "JobsLite-${project.apiVersion.minus("-SNAPSHOT")}-${bVer}${buildNumber}.jar"
dependencies {
include dependency('com.github.flibiostudio:utils')
}
relocate 'io.github.flibio.utils', 'me.flibio.jobslite.eutils'
}
artifacts {
archives shadowJar
}
license {
// The project properties to use
ext.name = project.name
ext.owner = project.owner
ext.inceptionYear = project.inceptionYear
ext.currentYear = project.currentYear
// The file that contains the license header
header file('HEADER.txt')
// The source sets to apply the license to
sourceSets = project.sourceSets
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14'
}
blossom {
replaceToken '@project.version@', project.version, 'src/main/java/me/flibio/jobslite/PluginInfo.java'
}