-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (88 loc) · 2.48 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
plugins {
id 'java'
id 'maven'
id 'idea'
id 'eclipse'
id 'net.minecrell.licenser' version '0.1.2'
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
defaultTasks 'clean', 'licenseFormat'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group 'xyz.lexteam'
version '1.1.0-SNAPSHOT'
description = "Spectre - The Lexteam module loader."
ext.url = 'https://www.lexteam.xyz/'
repositories {
mavenCentral()
}
dependencies {
}
license {
header file('HEADER.txt')
include '**/*.java'
newLine = false
}
jar {
classifier = 'base'
manifest {
attributes(
'Implementation-Title': project.name,
'Implementation-Version': version
)
}
}
shadowJar {
classifier = ''
}
task javadocJar(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
classifier = 'javadoc'
}
task sourcesJar(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives shadowJar
archives javadocJar
archives sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
if (System.getenv('MAVEN_RELEASES') != null) {
repository(url: 'file://' + System.getenv('MAVEN_RELEASES'))
snapshotRepository(url: 'file://' + System.getenv('MAVEN_SNAPSHOTS'))
}
pom {
artifactId = project.archivesBaseName.toLowerCase()
project {
name = project.archivesBaseName
description = project.description
packaging = 'jar'
url = project.url
scm {
url = "https://github.com/Lexteam/Spectre"
connection = "scm:git:https://github.com/Lexteam/Spectre.git"
developerConnection = "scm:git:[email protected]:Lexteam/Spectre.git"
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/Lexteam/Spectre/issues'
}
licenses {
license {
name = 'MIT License'
url = 'http://opensource.org/licenses/MIT'
distribution = 'repo'
}
}
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}