This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (60 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.10'
}
apply plugin: 'maven-publish'
group 'fr.rhaz.minecraft'
version '1.1'
def pname = "DeathPenalty"
def desc = "Withdraw bank account on death"
repositories {
maven { url "https://mymavenrepo.com/repo/NIp3fBk55f5oF6VI1Wso/"}
maven { url "https://oss.sonatype.org/content/repositories/snapshots"}
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"}
maven { url "http://nexus.hc.to/content/repositories/pub_releases" }
mavenCentral()
}
dependencies {
compileOnly "fr.rhaz.minecraft:kotlin4mc:2.1.1"
compileOnly "net.md-5:bungeecord-api:1.13-SNAPSHOT"
compileOnly "org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT"
compileOnly "net.milkbowl.vault:VaultAPI:1.7"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}
tasks.withType(Jar) {
destinationDir = file("$rootDir/jar")
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
}
sourceSets {
main.kotlin{
srcDirs += 'src'
}
test.kotlin.srcDirs += 'test'
}
import org.apache.tools.ant.filters.ReplaceTokens
processResources {
with copySpec {
from 'resources'
filter(ReplaceTokens, tokens: ['id':rootProject.name, 'name':pname, 'version':version, 'desc':desc])
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
publishing {
repositories {
maven {
url System.getProperties().getProperty("mavenwrite")
}
}
publications {
maven(MavenPublication) {
from components.java
}
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}