-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
73 lines (61 loc) · 2.16 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.0'
id 'io.freefair.lombok' version '8.3'
id 'java'
id 'jacoco'
id 'idea'
}
archivesBaseName = project.property("libName")
apply from: "$rootDir/gradle/publish.gradle"
group project.property("group")
allprojects {
ext {
mcVersion = project.property("mcVersion")
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'jacoco'
apply plugin: 'io.freefair.lombok'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish'
processResources {
project.properties.put("version", this.version)
expand project.properties
}
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://repo.codemc.io/repository/maven-public/' }
maven { url = 'https://jitpack.io' }
maven { url = 'https://repo.aikar.co/content/groups/aikar/' }
maven { url = 'https://repo.dmulloy2.net/repository/public/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/public/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url = 'https://nexus.velocitypowered.com/repository/maven-public/' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://repo.spongepowered.org/maven' }
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.0.1'
}
}
dependencies {
implementation project(path: ':database', configuration: 'shadow')
implementation project(path: ':extensions', configuration: 'shadow')
implementation project(path: ':maps', configuration: 'shadow')
implementation project(path: ':scheduler', configuration: 'shadow')
implementation project(path: ':yaml', configuration: 'shadow')
implementation project(path: ':utilities', configuration: 'shadow')
implementation project(path: ':minecraft', configuration: 'shadow')
}
shadowJar {
archiveClassifier = ''
exclude("plugin.yml")
}
tasks.shadowJar.dependsOn(jar)
defaultTasks 'build'