-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (60 loc) · 1.89 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 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id 'maven-publish'
id 'java'
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'dev.rosewood'
sourceCompatibility = 1.8
targetCompatibility = 1.8
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
disableAutoTargetJvm()
}
repositories {
mavenCentral()
maven { url = 'https://repo.rosewooddev.io/repository/public' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.1.0'
}
}
dependencies {
implementation project(':Framework')
implementation project(':API')
implementation project(':InventoryView:Wrapper')
implementation project(':InventoryView:New')
implementation project(':InventoryView:Old')
}
shadowJar {
archiveClassifier.set(null)
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifactId = 'guiframework'
pom {
name = 'guiframework'
}
}
}
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
}
}
}
}
build.dependsOn shadowJar
publishShadowPublicationToMavenRepository.dependsOn jar