-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
52 lines (44 loc) · 1.66 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
plugins {
id 'com.gradleup.shadow' version '8.3.0' apply false
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'com.gradleup.shadow'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
group = 'dev.rosewood'
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
java {
disableAutoTargetJvm() // Allows depending on Paper's newer APIs even though they use newer java version
}
test {
useJUnitPlatform()
}
repositories {
mavenCentral()
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://repo.rosewooddev.io/repository/public/' }
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.0.1'
}
publishing {
repositories {
if (project.hasProperty('mavenUser') && project.hasProperty('mavenPassword')) {
maven {
credentials {
username project.mavenUser
password project.mavenPassword
}
def releasesRepoUrl = 'https://repo.rosewooddev.io/repository/public-releases/'
def snapshotsRepoUrl = 'https://repo.rosewooddev.io/repository/public-snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
}
}