|
1 | 1 | plugins { |
2 | 2 | id "java-library" |
3 | | - id "maven-publish" |
| 3 | + id "base.base-conventions" |
| 4 | + id "base.fill-build-constants" |
| 5 | + id "vialoader.publishing-conventions" |
| 6 | + id "via.run-with-viaproxy-task" |
4 | 7 | id "net.raphimc.class-token-replacer" version "1.1.4" |
5 | 8 | } |
6 | 9 |
|
7 | | -base { |
8 | | - java.toolchain.languageVersion = JavaLanguageVersion.of(17) |
9 | | - compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8" |
10 | | - |
11 | | - group = project.maven_group ?: rootProject.maven_group |
12 | | - archivesName = project.name ?: rootProject.name |
13 | | - version = project.maven_version ?: rootProject.maven_version |
14 | | -} |
15 | | - |
16 | 10 | repositories { |
17 | | - mavenCentral() |
18 | 11 | maven { |
19 | 12 | name = "ViaVersion" |
20 | 13 | url = "https://repo.viaversion.com" |
@@ -61,71 +54,3 @@ dependencies { |
61 | 54 | api "com.google.guava:guava:33.4.8-jre" |
62 | 55 | api "org.slf4j:slf4j-api:2.0.17" |
63 | 56 | } |
64 | | - |
65 | | -sourceSets { |
66 | | - main { |
67 | | - classTokenReplacer { |
68 | | - property("\${version}", project.version) |
69 | | - } |
70 | | - } |
71 | | -} |
72 | | - |
73 | | -java { |
74 | | - withSourcesJar() |
75 | | -} |
76 | | - |
77 | | -jar { |
78 | | - from("LICENSE") { |
79 | | - rename { "${it}_${project.name ?: rootProject.name}" } |
80 | | - } |
81 | | -} |
82 | | - |
83 | | -publishing { |
84 | | - repositories { |
85 | | - maven { |
86 | | - name = "Via" |
87 | | - url = "https://repo.viaversion.com/" |
88 | | - |
89 | | - credentials(PasswordCredentials) |
90 | | - authentication { |
91 | | - basic(BasicAuthentication) |
92 | | - } |
93 | | - } |
94 | | - } |
95 | | - publications { |
96 | | - maven(MavenPublication) { |
97 | | - groupId = project.maven_group |
98 | | - artifactId = project.maven_name |
99 | | - version = project.maven_version |
100 | | - |
101 | | - from components.java |
102 | | - |
103 | | - pom { |
104 | | - name = "ViaLoader" |
105 | | - description = "Implementation of a ViaVersion based protocol translator platform" |
106 | | - url = "https://github.com/ViaVersion/ViaLoader" |
107 | | - licenses { |
108 | | - license { |
109 | | - name = "GPL-3.0 License" |
110 | | - url = "https://github.com/ViaVersion/ViaLoader/blob/main/LICENSE" |
111 | | - } |
112 | | - } |
113 | | - developers { |
114 | | - developer { |
115 | | - id = "RK_01" |
116 | | - } |
117 | | - developer { |
118 | | - id = "FlorianMichael" |
119 | | - name = "EnZaXD" |
120 | | - |
121 | | - } |
122 | | - } |
123 | | - scm { |
124 | | - connection = "scm:git:git://github.com/ViaVersion/ViaLoader.git" |
125 | | - developerConnection = "scm:git:ssh://github.com/ViaVersion/ViaLoader.git" |
126 | | - url = "https://github.com/ViaVersion/ViaLoader.git" |
127 | | - } |
128 | | - } |
129 | | - } |
130 | | - } |
131 | | -} |
0 commit comments