File tree Expand file tree Collapse file tree 8 files changed +83
-40
lines changed
src/main/kotlin/top/mcfpp/gradle Expand file tree Collapse file tree 8 files changed +83
-40
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,12 @@ version = "1.0-SNAPSHOT"
12
12
13
13
repositories {
14
14
mavenCentral()
15
- maven {
16
- url = uri(" ../build/repo" )
17
- }
15
+ mavenLocal()
18
16
}
19
17
20
18
dependencies {
21
19
testImplementation(" org.jetbrains.kotlin:kotlin-test" )
22
- implementation(" top.mcfpp:mcfpp-gradle :1.0-SNAPSHOT" )
20
+ implementation(" top.mcfpp:mcfpp:1.0-SNAPSHOT" )
23
21
}
24
22
25
23
tasks.test {
@@ -33,5 +31,5 @@ kotlin {
33
31
mcfpp {
34
32
version = " 1.21"
35
33
description = " qwq"
36
- targetPath = Path (" " )
34
+ targetPath = Path (" ./build/datapack " )
37
35
}
Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
- systemProp.https.proxyHost =127.0.0.1
3
- systemProp.https.proxyPort =20809
2
+ # systemProp.https.proxyHost=127.0.0.1
3
+ # systemProp.https.proxyPort=20809
4
4
org.gradle.jvmargs =-Xmx2g
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ rootProject.name = "Example"
2
2
3
3
pluginManagement {
4
4
repositories {
5
- maven {
6
- url = uri(" ../build/repo" )
7
- }
5
+ mavenLocal()
8
6
gradlePluginPortal()
9
7
maven(" https://jitpack.io/" )
10
8
maven(" https://libraries.minecraft.net" )
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ plugins {
13
13
id(" org.jetbrains.dokka" ) version " 1.9.20"
14
14
java
15
15
cpp
16
- id(" java-gradle-plugin" )
17
16
id(" maven-publish" )
18
17
id(" com.gradleup.shadow" ) version " 8.3.5"
19
18
}
@@ -57,31 +56,6 @@ tasks.shadowJar {
57
56
minimize()
58
57
}
59
58
60
- gradlePlugin {
61
- plugins {
62
- create(" mcfpp" ) {
63
- id = " top.mcfpp.gradle"
64
- implementationClass = " top.mcfpp.gradle.MCFPPGradlePlugin"
65
- }
66
- }
67
- }
68
-
69
- publishing {
70
- publications {
71
- create<MavenPublication >(" mavenJava" ) {
72
- from(components[" java" ])
73
- groupId = GROUP
74
- artifactId = " mcfpp-gradle"
75
- version = VERSION
76
- }
77
- }
78
- repositories {
79
- maven {
80
- url = Paths .get(" ${layout.buildDirectory.get().asFile.absolutePath} /repo" ).toUri()
81
- }
82
- }
83
- }
84
-
85
59
tasks.test {
86
60
useJUnitPlatform()
87
61
}
@@ -197,6 +171,20 @@ application {
197
171
mainClass.set(" top.mcfpp.MCFPPKt" )
198
172
}
199
173
174
+ publishing {
175
+ publications {
176
+ create<MavenPublication >(" mavenJava" ) {
177
+ from(components[" java" ])
178
+ groupId = GROUP
179
+ artifactId = " mcfpp"
180
+ version = VERSION
181
+ }
182
+ }
183
+ repositories {
184
+ mavenLocal()
185
+ }
186
+ }
187
+
200
188
enum class OperatingSystem {
201
189
WINDOWS ,
202
190
LINUX ,
Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
- systemProp.https.proxyHost =127.0.0.1
3
- systemProp.https.proxyPort =20809
2
+ # systemProp.https.proxyHost=127.0.0.1
3
+ # systemProp.https.proxyPort=20809
4
4
org.gradle.jvmargs =-Xmx2g
Original file line number Diff line number Diff line change
1
+ import java.nio.file.Paths
2
+
3
+ plugins {
4
+ kotlin(" jvm" )
5
+ id(" java-gradle-plugin" )
6
+ id(" maven-publish" )
7
+ id(" com.gradleup.shadow" ) version " 8.3.5"
8
+ }
9
+
10
+ val GROUP = " top.mcfpp"
11
+ val VERSION = " 1.0-SNAPSHOT"
12
+ group = GROUP
13
+ version = VERSION
14
+
15
+ repositories {
16
+ mavenCentral()
17
+ maven(" https://jitpack.io" )
18
+ maven(" https://maven.aliyun.com/nexus/content/groups/public/" )
19
+ maven(" https://libraries.minecraft.net" )
20
+ }
21
+
22
+ dependencies {
23
+ testImplementation(kotlin(" test" ))
24
+ implementation(project(" :" ))
25
+ }
26
+
27
+ tasks.test {
28
+ useJUnitPlatform()
29
+ }
30
+ kotlin {
31
+ jvmToolchain(21 )
32
+ }
33
+
34
+ tasks.shadowJar {
35
+ minimize()
36
+ }
37
+
38
+ gradlePlugin {
39
+ plugins {
40
+ create(" mcfpp-gradle" ) {
41
+ id = " top.mcfpp.gradle"
42
+ implementationClass = " top.mcfpp.gradle.MCFPPGradlePlugin"
43
+ }
44
+ }
45
+ }
46
+
47
+ publishing {
48
+ publications {
49
+ create<MavenPublication >(" mavenJava" ) {
50
+ from(components[" java" ])
51
+ groupId = GROUP
52
+ artifactId = " mcfpp-gradle"
53
+ version = VERSION
54
+ }
55
+ }
56
+
57
+ repositories {
58
+ mavenLocal()
59
+ }
60
+ }
File renamed without changes.
Original file line number Diff line number Diff line change 1
-
2
1
rootProject.name = " MCFPP"
3
-
2
+ include( " mcfpp-gradle " )
You can’t perform that action at this time.
0 commit comments