-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·78 lines (67 loc) · 1.59 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven'
id "com.github.johnrengelman.shadow" version "6.1.0"
}
group = 'org.kakara'
version = '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'maven-publish'
configurations {
deployerJars
shadow
}
repositories {
mavenLocal()
maven {
url = 'https://repo.maven.apache.org/maven2'
}
maven {
url = 'https://repo.kingtux.me/storages/maven/kakara'
}
maven {
url 'https://repo.spongepowered.org/maven/'
}
}
dependencies {
compileOnly 'org.kakara.core:common:1.0-SNAPSHOT'
compileOnly 'org.kakara.core:server:1.0-SNAPSHOT'
compile 'org.spongepowered:noise:2.0.0-SNAPSHOT'
}
jar {
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
shadowJar {
dependencies {
exclude('org.kakara:core:*')
}
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: "https://repo.kingtux.me/storages/maven/kakara") {
authentication(userName: System.getProperty('credentials.username'),
password: System.getProperty('credentials.password'))
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
archives shadowJar
}