Skip to content

Commit

Permalink
Maven publishing, new maven repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ExtraCrafTX committed Jul 3, 2019
1 parent 3b1d1bf commit bd8b69b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ A utility that allows for easy server-side-only additions to the game.
## Maven
```gradle
repositories {
maven { url "https://minecraft.curseforge.com/api/maven"}
maven { url "https://maven.extracraftx.com"}
}
dependencies {
modCompile "serveradditionsutil:ServerAdditionsUtil:{VERSION}"
modCompile "com.extracraftx.minecraft:ServerAdditionsUtil:{VERSION}"
}
```
*Note: only versions `0.0.9` and above are available on this repository*

## Usage
For basic usage, simply create new instances of or extend `ServerSideBlock`, `ServerSideBlockItem` and `ServerSideItem`. The blocks/items created will be able to be used by unmodded clients. The names and recipes of these blocks/items should be specified just like any other blocks/items.
Expand All @@ -29,4 +30,5 @@ There are still many issues, but here are some that I already know of:
* Blocks with different strength to their representation don't have correct progress on client who's breaking block (**Partially solved, glitchy, probably impossible to fully solve**)

## Features being considered
* Allow blocks/items to be displayed without the vanilla variant on clients with the mod installed
* Allow blocks/items to be displayed without the vanilla variant on clients with the mod installed
* Support server resource packs for language and custom textures
16 changes: 13 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies {
//to change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
modCompile "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
Expand Down Expand Up @@ -63,7 +63,10 @@ publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(jar) {
// artifact(jar) {
// builtBy remapJar
// }
artifact("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}.jar"){
builtBy remapJar
}
artifact(sourcesJar) {
Expand All @@ -75,6 +78,13 @@ publishing {
// select the repositories you want to publish to
repositories {
// uncomment to publish to the local maven
// mavenLocal()
mavenLocal()
maven{
url = extracraftxMaven
credentials {
username = extracraftxMavenUsername
password = extracraftxMavenPassword
}
}
}
}

0 comments on commit bd8b69b

Please sign in to comment.