Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 37e35c3

Browse files
authored
Create patchwork-api-base (#157)
* Create patchwork-api-base * Keybindings, mirror dependencies in top-level jar due to Loader/201 * spaces bad
1 parent 2d2cc76 commit 37e35c3

File tree

69 files changed

+161
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+161
-84
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ allprojects {
5555
dependencies {
5656
minecraft "com.mojang:minecraft:$Globals.mcVersion"
5757
mappings "net.fabricmc:yarn:${Globals.mcVersion}${Globals.yarnVersion}:v2"
58-
modCompile "net.fabricmc:fabric-loader:0.8.4+build.198"
59-
modCompile "net.fabricmc.fabric-api:fabric-api:0.15.1+build.260-1.14"
58+
modImplementation "net.fabricmc:fabric-loader:0.8.4+build.198"
59+
modImplementation "net.fabricmc.fabric-api:fabric-api:0.15.1+build.260-1.14"
6060

6161
implementation 'net.patchworkmc:patchwork-eventbus:2.0.1:all'
6262
implementation 'com.google.code.findbugs:jsr305:3.0.2'
@@ -238,8 +238,8 @@ dependencies {
238238

239239
minecraft "com.mojang:minecraft:$Globals.mcVersion"
240240
mappings "net.fabricmc:yarn:${Globals.mcVersion}${Globals.yarnVersion}:v2"
241-
modCompile "net.fabricmc:fabric-loader:0.8.4+build.198"
242-
modCompile "net.fabricmc.fabric-api:fabric-api:0.15.1+build.260-1.14"
241+
modImplementation "net.fabricmc:fabric-loader:0.8.4+build.198"
242+
modImplementation "net.fabricmc.fabric-api:fabric-api:0.15.1+build.260-1.14"
243243

244244
implementation 'com.electronwill.night-config:toml:3.6.2'
245245
include 'com.electronwill.night-config:core:3.6.2'

patchwork-api-base/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
archivesBaseName = "patchwork-api-base"
2+
version = getSubprojectVersion(project, "0.1.0")

patchwork-god-classes/src/main/resources/assets.patchwork-god-classes/icon.png renamed to patchwork-api-base/src/main/resources/assets/patchwork-api-base/icon.png

File renamed without changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"schemaVersion": 1,
3+
"id": "patchwork-api-base",
4+
"name": "Patchwork API Base",
5+
"version": "${version}",
6+
"license": "LGPL-2.1-only",
7+
"icon": "assets/patchwork-api-base/icon.png",
8+
"contact": {
9+
"issues": "https://github.com/PatchworkMC/patchwork-api/issues",
10+
"sources": "https://github.com/PatchworkMC/patchwork-api"
11+
},
12+
"authors": [
13+
"PatchworkMC"
14+
],
15+
"depends": {
16+
// This is mirrored in the top-level project because of a Loader issue
17+
"fabricloader": ">=0.8.4",
18+
"fabric": ">=0.15.1"
19+
},
20+
"description": "Common zero-overhead classes used across Patchwork modules",
21+
"custom": {
22+
"modmenu:api": true,
23+
"modmenu:parent": "patchwork"
24+
}
25+
}

patchwork-biomes/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
archivesBaseName = "patchwork-biomes"
22
version = getSubprojectVersion(project, "0.2.0")
3+
4+
dependencies {
5+
implementation project(path: ':patchwork-api-base', configuration: 'dev')
6+
}

patchwork-biomes/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"PatchworkMC"
1414
],
1515
"depends": {
16-
"fabricloader": ">=0.8.4",
17-
"patchwork-fml": "*"
16+
"patchwork-api-base": "*"
1817
},
1918
"description": "Implementation of the Forge Biomes API.",
2019
"entrypoints": {

patchwork-capabilities/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ archivesBaseName = "patchwork-capabilities"
22
version = getSubprojectVersion(project, "0.2.0")
33

44
dependencies {
5-
compile project(path: ':patchwork-fml', configuration: 'dev')
5+
implementation project(path: ':patchwork-api-base', configuration: 'dev')
6+
implementation project(path: ':patchwork-fml', configuration: 'dev')
67
}

patchwork-capabilities/src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 1,
33
"id": "patchwork-capabilities",
4-
"name": "Patchwork Capabilities support",
4+
"name": "Patchwork Capabilities",
55
"version": "${version}",
66
"license": "LGPL-2.1-only",
77
"icon": "assets/patchwork-capabilities/icon.png",
@@ -13,7 +13,7 @@
1313
"PatchworkMC"
1414
],
1515
"depends": {
16-
"fabricloader": ">=0.8.4",
16+
"patchwork-api-base": "*",
1717
"patchwork-fml": "*"
1818
},
1919
"mixins": [

patchwork-data-generators/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ archivesBaseName = "patchwork-data-generators"
22
version = getSubprojectVersion(project, "0.2.0")
33

44
dependencies {
5-
compile project(path: ':patchwork-events-lifecycle', configuration: 'dev')
6-
compile project(path: ':patchwork-fml', configuration: 'dev')
5+
implementation project(path: ':patchwork-api-base', configuration: 'dev')
6+
implementation project(path: ':patchwork-events-lifecycle', configuration: 'dev')
7+
implementation project(path: ':patchwork-fml', configuration: 'dev')
78
}

patchwork-data-generators/src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"PatchworkMC"
1414
],
1515
"depends": {
16-
"fabricloader": ">=0.8.4"
16+
"patchwork-api-base": "*"
1717
},
1818
"mixins": [
1919
],

0 commit comments

Comments
 (0)