This repository has been archived by the owner on Oct 15, 2023. It is now read-only.
forked from boy0001/FastAsyncWorldedit
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
67 lines (54 loc) · 1.64 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
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2" apply false
}
def releaseVersion = findProperty("github.tag") ?: getCommit()
println("Version: ${releaseVersion}")
String getCommit() {
def stdout = new ByteArrayOutputStream()
exec {
commandLine "git", "rev-parse", "--short", "HEAD"
standardOutput = stdout
}
return stdout.toString().trim()
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
group = 'io.github.whilein.fawe-legacy'
version = releaseVersion
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
options.encoding = "UTF-8"
}
repositories {
mavenCentral()
// aikar
maven { url "https://repo.aikar.co/content/groups/aikar/" }
// worldguard
maven { url "https://maven.enginehub.org/repo/" }
// protocollib
maven { url "https://repo.dmulloy2.net/repository/public/" }
// paper-api
maven { url "https://repo.destroystokyo.com/repository/maven-public/" }
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
mavenLocal()
// github packages
maven {
url = "https://maven.pkg.github.com/whilein/fawe-legacy"
credentials {
username = findProperty("gpr.user")
password = findProperty("gpr.password")
}
}
}
}
}