Skip to content

Commit 39f5f7b

Browse files
committed
chore: add core module to publish
1 parent 361305c commit 39f5f7b

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ BetterModel aims to be a reliable engine that provides stable, high-quality anim
105105
```kotlin
106106
repositories {
107107
mavenCentral()
108+
maven("https://maven.blamejared.com/") // For transitive dependency in bettermodel-fabric
109+
maven("https://maven.nucleoid.xyz/") // For transitive dependency in bettermodel-fabric
108110
}
109111

110112
dependencies {
111-
compileOnly("io.github.toxicity188:bettermodel-api:VERSION") // standard api
112113
compileOnly("io.github.toxicity188:bettermodel-bukkit-api:VERSION") // bukkit(spigot, paper, etc) api
113114
//modApi("io.github.toxicity188:bettermodel-fabric:VERSION") // mod(fabric)
114115
}
@@ -123,10 +124,11 @@ repositories {
123124
password = YOUR_GITHUB_TOKEN
124125
}
125126
}
127+
maven("https://maven.blamejared.com/") // For transitive dependency in bettermodel-fabric
128+
maven("https://maven.nucleoid.xyz/") // For transitive dependency in bettermodel-fabric
126129
}
127130

128131
dependencies {
129-
compileOnly("io.github.toxicity188:bettermodel-api:VERSION-SNAPSHOT") // standard api
130132
compileOnly("io.github.toxicity188:bettermodel-bukkit-api:VERSION-SNAPSHOT") // bukkit(spigot, paper, etc) api
131133
//modApi("io.github.toxicity188:bettermodel-fabric:VERSION-SNAPSHOT") // mod(fabric)
132134
}
@@ -140,10 +142,11 @@ dependencies {
140142
```groovy
141143
repositories {
142144
mavenCentral()
145+
maven 'https://maven.blamejared.com/' // For transitive dependency in bettermodel-fabric
146+
maven 'https://maven.nucleoid.xyz/' // For transitive dependency in bettermodel-fabric
143147
}
144148
145149
dependencies {
146-
compileOnly 'io.github.toxicity188:bettermodel-api:VERSION' // standard api
147150
compileOnly 'io.github.toxicity188:bettermodel-bukkit-api:VERSION' // bukkit(spigot, paper, etc) api
148151
//modApi 'io.github.toxicity188:bettermodel-fabric:VERSION' // mod(fabric)
149152
}
@@ -159,10 +162,11 @@ repositories {
159162
password = YOUR_GITHUB_TOKEN
160163
}
161164
}
165+
maven 'https://maven.blamejared.com/' // For transitive dependency in bettermodel-fabric
166+
maven 'https://maven.nucleoid.xyz/' // For transitive dependency in bettermodel-fabric
162167
}
163168
164169
dependencies {
165-
compileOnly 'io.github.toxicity188:bettermodel-api:VERSION-SNAPSHOT' // standard api
166170
compileOnly 'io.github.toxicity188:bettermodel-bukkit-api:VERSION-SNAPSHOT' // bukkit(spigot, paper, etc) api
167171
//modApi 'io.github.toxicity188:bettermodel-fabric:VERSION-SNAPSHOT' // mod(fabric)
168172
}
@@ -182,12 +186,6 @@ dependencies {
182186
</repositories>
183187

184188
<dependencies>
185-
<dependency>
186-
<groupId>io.github.toxicity188</groupId>
187-
<artifactId>bettermodel-api</artifactId>
188-
<version>VERSION</version>
189-
<scope>provided</scope>
190-
</dependency>
191189
<dependency>
192190
<groupId>io.github.toxicity188</groupId>
193191
<artifactId>bettermodel-bukkit-api</artifactId>

buildSrc/src/main/kotlin/standard-conventions.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rootProject.dependencies.dokka(project)
1919
dependencies {
2020
testImplementation(kotlin("test"))
2121

22-
compileOnly(libs.bundles.library)
22+
api(libs.bundles.library)
2323
testImplementation(libs.bundles.library)
2424
}
2525

core/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
plugins {
2-
alias(libs.plugins.convention.standard)
2+
alias(libs.plugins.convention.publish)
33
}
44

55
dependencies {
6+
api(project(":api"))
7+
68
compileOnly(libs.bundles.minecraft)
79
compileOnly("com.mojang:authlib:7.0.61")
810

9-
compileOnly(project(":api"))
10-
1111
compileOnly(libs.bundles.core)
1212
compileOnly(libs.cloud.core)
1313
}

platform/fabric/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ dependencies {
6767

6868
modImplementation(libs.bundles.fabric)
6969

70-
api(libs.bundles.fabric.library); include(libs.bundles.fabric.library)
70+
implementation(libs.bundles.fabric.library); include(libs.bundles.fabric.library)
7171
modApi(libs.bundles.fabric.mod); include(libs.bundles.fabric.mod)
7272

73-
api(libs.bundles.core); include(libs.bundles.core)
74-
api(libs.bundles.library); include(libs.bundles.library)
73+
implementation(libs.bundles.core); include(libs.bundles.core)
74+
include(libs.bundles.library)
7575

7676
}
7777

0 commit comments

Comments
 (0)