Skip to content

Commit

Permalink
Finished seperation of Implementation and API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatuu committed Sep 13, 2019
1 parent 0dd8e70 commit c8e1a34
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A lightweight dimensional API for disposable, low-overhead pocket dimensions.
- Make unregistering dimensions not be garbagio.
- Saved Dimension Metadata for auto-registration on load.
- Fix TabComplete
- Separation
- ~~Separation~~
- WorldGeneration Templates (Flat, SpawnPlatform, whatever)
- WorldGeneration Utilities/Builder
- Portal Primitives
Expand Down
39 changes: 29 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import net.fabricmc.loom.task.RemapJarTask

plugins {
id 'fabric-loom' version '0.2.4-SNAPSHOT'
id 'fabric-loom' version '0.2.5-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -18,13 +20,11 @@ repositories {
minecraft {}

dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
modApi "net.fabricmc.fabric-api:fabric-events-lifecycle-v0:${project.cmd_version}"
modApi "net.fabricmc.fabric-api:fabric-api-base:${project.base_version}"
include "net.fabricmc.fabric-api:fabric-events-lifecycle-v0:${project.cmd_version}"
include "net.fabricmc.fabric-api:fabric-api-base:${project.base_version}"
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-events-lifecycle-v0:${project.cmd_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api-base:${project.base_version}"
}

processResources {
Expand All @@ -45,7 +45,20 @@ task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
jar { from "LICENSE" }
task apiJar(type: Jar, dependsOn: classes){
classifier = "api-dev"
from(sourceSets.main.output){
include "dev/vatuu/tesseract/api/**"
}
}
task remapApiJar(type: RemapJarTask, dependsOn: apiJar){
input = apiJar.archivePath
output = file("build/libs/tesseract-" + version + "-api.jar")
}
jar {
from "LICENSE"
dependsOn apiJar
}

publishing {
publications {
Expand All @@ -56,8 +69,14 @@ publishing {
artifact(sourcesJar) {
builtBy remapSourcesJar
}
artifact(remapApiJar.output){
classifier = "api"
builtBy remapApiJar
}
}
}

repositories {}
repositories {
mavenLocal()
}
}
3 changes: 3 additions & 0 deletions src/main/java/dev/vatuu/tesseract/api/DimensionState.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package dev.vatuu.tesseract.api;

/**
* Test Javadoc
*/
public enum DimensionState {
SAVE(false, false, false),
SAVE_UNLOAD(true, false, false),
Expand Down

0 comments on commit c8e1a34

Please sign in to comment.