Skip to content

Commit

Permalink
Fixed CI artifacts and some other gradle things
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstaeding committed Jan 31, 2020
1 parent 19e8de2 commit 75ef9fa
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs: # a collection of steps
command: |
# Skip this for other nodes
if [ "$CIRCLE_NODE_INDEX" == 0 ]; then
./gradlew assemble
./gradlew assemble -PbuildNumber=$CIRCLE_BUILD_NUM
fi
# As the JAR was only assembled in the first build container, build/libs will be empty in all the other build containers.
- store_artifacts:
path: build/libs
path: sponge/build/libs
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion MSRepository
5 changes: 0 additions & 5 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ plugins {
id 'java'
}

group 'rocks.milspecsg'
version '0.1.0-dev'

sourceCompatibility = 1.8

repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
Expand Down
19 changes: 7 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ plugins {
id 'java'
}

group 'rocks.milspecsg'
version '0.1.0-dev'

sourceCompatibility = 1.8

repositories {
mavenCentral()
}

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.0'
subprojects {
if (project.hasProperty("buildNumber") && modVersion.contains("-SNAPSHOT")) {
modVersion = modVersion.replace("-SNAPSHOT", "-RC${buildNumber}")
}
group modGroup
version modVersion
sourceCompatibility = 1.8
}
5 changes: 0 additions & 5 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ plugins {
id "net.kyori.blossom" version "1.1.0"
}

group modGroup
version modVersion

sourceCompatibility = 1.8

repositories {
mavenCentral()
maven { url 'https://repo.spongepowered.org/maven' }
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modGroup=rocks.milspecsg
modVersion=1.0.0-SNAPSHOT
modVersion=C1.0-1.0.0-SNAPSHOT
modBaseName=MSDataSync

# dependencies
Expand Down
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Fri Jan 31 23:47:39 CET 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
10 changes: 2 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,15 @@ include 'MSRepository:msr-api'
include 'MSRepository:msr-api:api-config'

include 'MSRepository:msr-api:api-repository'
include 'MSRepository:msr-api:api-repository:api-repository-mongodb'
include 'MSRepository:msr-api:api-repository:api-repository-json'
include 'MSRepository:msr-api:api-repository:api-repository-h2'
include 'MSRepository:msr-api:api-repository:api-repository-mariadb'
include 'MSRepository:msr-api:api-repository:api-repository-nitrite'
include 'MSRepository:msr-api:api-repository:api-repository-mongodb'
include 'MSRepository:msr-api:api-repository:api-repository-xodus'

include 'MSRepository:msr-common'
include 'MSRepository:msr-common:common-config'
include 'MSRepository:msr-common:common-repository'
include 'MSRepository:msr-common:common-repository:common-repository-mongodb'
include 'MSRepository:msr-common:common-repository:common-repository-json'
include 'MSRepository:msr-common:common-repository:common-repository-h2'
include 'MSRepository:msr-common:common-repository:common-repository-mariadb'
include 'MSRepository:msr-common:common-repository:common-repository-nitrite'
include 'MSRepository:msr-common:common-repository:common-repository-mongodb'
include 'MSRepository:msr-common:common-repository:common-repository-xodus'

include 'MSRepository:msr-core'
Expand Down
9 changes: 4 additions & 5 deletions sponge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ plugins {
id 'org.spongepowered.plugin' version '0.8.1'
}

version = modVersion
group = modGroup

sourceCompatibility = 1.8
jar.enabled = false // we only want shadowJar

repositories {
mavenCentral()
Expand Down Expand Up @@ -48,7 +45,9 @@ dependencies {
}

shadowJar {
archiveName = "MSDataSync-Sponge-${modVersion}.jar"
String jarName = "MSDataSync-Sponge-${modVersion}.jar"
println "Building: " + jarName
archiveFileName = jarName

dependencies {
include project(':api')
Expand Down

0 comments on commit 75ef9fa

Please sign in to comment.