-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
83 lines (72 loc) · 2.65 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
74
75
76
77
78
79
80
81
82
83
plugins {
id "io.github.goooler.shadow" version "8.1.8"
id "io.freefair.lombok" version "8.10"
id "architectury-plugin" version "3.4-SNAPSHOT"
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
id "maven-publish"
}
allprojects {
apply plugin: "architectury-plugin"
version = project.project_version
group = project.maven_group
architectury {
compileOnly()
}
repositories {
mavenCentral()
maven { url "https://maven.minecraftforge.net/" } // Forge
maven { url "https://repo.papermc.io/repository/maven-public/" } // Paper + Velocity
maven { url "https://api.modrinth.com/maven/" } // Modrinth
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = project.javaVersion as Integer
}
}
subprojects {
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "io.freefair.lombok"
dependencies {
compileOnly "org.apache.fury:fury-core:${project.fury_version}"
compileOnly "io.netty:netty-buffer:${project.netty_version}"
compileOnly "io.netty:netty-transport:${project.netty_version}"
compileOnly "io.netty:netty-handler:${project.netty_version}"
compileOnly "io.netty:netty-codec-http:${project.netty_version}"
compileOnly "io.netty:netty-codec-http2:${project.netty_version}"
compileOnly "org.bouncycastle:bcpkix-jdk18on:${project.bouncy_version}"
compileOnly "me.mrnavastar:r:${project.r_version}"
compileOnly "org.projectlombok:lombok:${project.lombok_version}"
annotationProcessor "org.projectlombok:lombok:${project.lombok_version}"
}
task jarSources(type:Jar){
archiveBaseName.set("protoweaver")
archiveClassifier.set("sources")
exclude {
sourceSets.main.allSource.contains it.file
}
from delombok
}
jar.finalizedBy(jarSources)
if (project.path != ':loader-common') {
publishing {
repositories {
maven {
url "https://maven.mrnavastar.rocks/releases"
credentials {
username = System.getenv("MAVEN_NAME")
password = System.getenv("MAVEN_SECRET")
}
}
}
publications {
mavenJava(MavenPublication) {
groupId = "me.mrnavastar.protoweaver"
artifactId = project.name
from components.java
artifact tasks.jarSources
}
}
}
}
}