Skip to content

Commit

Permalink
Get build-ready
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Aug 14, 2022
1 parent 0a904f4 commit 7d5d80f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
13 changes: 12 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}

Expand Down Expand Up @@ -37,4 +38,14 @@ sourceSets {
srcDir "res"
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.github.Redempt'
artifactId = rootProject.name
version = System.env.BUILD_VERSION ?: "1.0"
from components.java
}
}
}
15 changes: 13 additions & 2 deletions platforms/spigot/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
}
repositories {
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
Expand All @@ -9,7 +10,7 @@ repositories {
}
jar {
from zipTree('../../build/libs/Ordinate.jar')
archiveBaseName.set("Ordinate-spigot")
archiveBaseName.set('Ordinate-spigot')
}
compileJava {
sourceCompatibility = '1.8'
Expand All @@ -28,4 +29,14 @@ sourceSets {
srcDir 'res'
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.github.Redempt'
artifactId = 'Ordinate-spigot'
version = System.env.BUILD_VERSION ?: '1.0'
from components.java
}
}
}

0 comments on commit 7d5d80f

Please sign in to comment.