Skip to content

Commit

Permalink
Also added jitpack support for the "api not api but somewhat api I sw…
Browse files Browse the repository at this point in the history
…ear it's disgusting that I have to actually pack this terrible thing labeled as "api" however the convenience wins this time"
  • Loading branch information
juanmuscaria committed May 28, 2023
1 parent 7eb5786 commit 5df69e9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ apply plugin: 'base'
// Crucible tasks and subproject management is provided by this plugin
apply plugin: 'crucible'

// Needed for jitpack
apply plugin: 'maven-publish'

repositories {
maven {
name = "juanmuscaria"
Expand Down Expand Up @@ -119,6 +122,7 @@ dependencies {
libraries 'java3d:vecmath:1.3.1'
libraries 'it.unimi.dsi:fastutil:8.2.2'
}

packageApi {
include 'org/bukkit/**'
include 'org/spigotmc/**'
Expand All @@ -128,6 +132,20 @@ packageApi {
include 'net/minecraftforge/cauldron/**'
}

publishing {
publications {
crucible(MavenPublication) {
artifact packageApi
}
}
repositories {
maven {
url = buildDir.absolutePath + "/repo"
name = "filesystem"
}
}
}

packageServer {
manifest {
attributes([
Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
before_install:
- ./gradlew setupCrucible

0 comments on commit 5df69e9

Please sign in to comment.