aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rwxr-xr-xbuild.gradle38
1 files changed, 26 insertions, 12 deletions
diff --git a/build.gradle b/build.gradle
index e198753..839d15b 100755
--- a/build.gradle
+++ b/build.gradle
@@ -11,23 +11,37 @@ buildscript {
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
+allprojects {
+ apply plugin: 'maven-publish'
+ version = "1.0.0.2" // First 3 numbers should correspond to the version of the API, last number is for the mod itself for any changes/fixes
+ group = "net.hypixel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
+ archivesBaseName = "HypixelModAPI"
-version = "1.0.0.1" // First 3 numbers should correspond to the version of the API, last number is for the mod itself for any changes/fixes
-group = "net.hypixel.modapi" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
-archivesBaseName = "HypixelModAPI"
-sourceCompatibility = 1.8
-targetCompatibility = 1.8
-
-repositories {
- maven {
- url "https://repo.hypixel.net/repository/Hypixel/"
+ repositories {
+ maven {
+ url "https://repo.hypixel.net/repository/Hypixel/"
+ }
+ maven {
+ url "https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1"
+ }
+ mavenLocal()
}
- maven {
- url "https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1"
+
+ publishing {
+ publications {
+ maven(MavenPublication) {
+ groupId = project.group
+ artifactId = project == rootProject ? 'mod-api-forge' : ('mod-api-forge-' + project.name)
+ version = project.version
+ from components.java
+ }
+ }
}
- mavenLocal()
}
+sourceCompatibility = 1.8
+targetCompatibility = 1.8
+
minecraft {
version = "1.8.9-11.15.1.1722"
// version = "1.8.9-11.15.1.2318-1.8.9"