Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions cr-destsol/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ plugins {
idea
}

// We use both Maven Central and our own Artifactory instance, which contains module builds, extra libs, and so on
repositories {
mavenCentral {
content {
// This is first choice for most java dependencies, but assume we'll need to check our
// own repository for things from our own organization.
// (This is an optimization so gradle doesn't try to find our hundreds of modules in 3rd party repos)
excludeGroupByRegex("org.terasology(..+)?")
}
}
// JBoss Maven Repository requried to fetch `org.jpastebin` dependency for CrashReporter
// https://developer.jboss.org/docs/DOC-11377
maven {
name = "JBoss Public Maven Repository Group"
url = uri("https://repository.jboss.org/nexus/content/repositories/public/")
content {
includeModule("org", "jpastebin")
}
}
maven {
name = "Terasology Artifactory"
url = uri("https://artifactory.terasology.io/artifactory/virtual-repo-live")
}
}

dependencies {
api(project(":cr-core"))
}
Expand Down
21 changes: 17 additions & 4 deletions cr-terasology/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,28 @@ plugins {
idea
}

// We use both Maven Central and our own Artifactory instance, which contains module builds, extra libs, and so on
repositories {
maven {
name = "Terasology Artifactory"
url = uri("https://artifactory.terasology.io/artifactory/virtual-repo-live")
mavenCentral {
content {
// This is first choice for most java dependencies, but assume we'll need to check our
// own repository for things from our own organization.
// (This is an optimization so gradle doesn't try to find our hundreds of modules in 3rd party repos)
excludeGroupByRegex("org.terasology(..+)?")
}
}
mavenCentral()
// JBoss Maven Repository requried to fetch `org.jpastebin` dependency for CrashReporter
// https://developer.jboss.org/docs/DOC-11377
maven {
name = "JBoss Public Maven Repository Group"
url = uri("https://repository.jboss.org/nexus/content/repositories/public/")
content {
includeModule("org", "jpastebin")
}
}
maven {
name = "Terasology Artifactory"
url = uri("https://artifactory.terasology.io/artifactory/virtual-repo-live")
}
}

Expand Down
17 changes: 3 additions & 14 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0

// Check to see if CR is embedded within Terasology, if so use nested paths
println("rootProject for CrashReporter is: " + rootProject.name)

if (rootProject.name == "Terasology") {
println("CrashReporter is embedded within Terasology, using nested paths")
include(":libs:CrashReporter:cr-core")
include(":libs:CrashReporter:cr-destsol")
include(":libs:CrashReporter:cr-terasology")
} else {
println("CrashReporter is running standalone so using simple paths for includes")
include("cr-core")
include("cr-destsol")
include("cr-terasology")
}
include("cr-core")
include("cr-destsol")
include("cr-terasology")