Skip to content

Commit

Permalink
New Artifactory URL (#5142)
Browse files Browse the repository at this point in the history
* chore: update to new Artifactory (plus skip PMD)
  • Loading branch information
Cervator authored Sep 26, 2023
1 parent 5957641 commit f907533
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 31 deletions.
5 changes: 2 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pipeline {

stage('Analytics') {
steps {
sh './gradlew --console=plain check -x test'
sh './gradlew --console=plain check -x test -x pmdMain -x pmdTest -x pmdJmh' // TODO: Probably more cleanly remove PMD overall if no use?
}
post {
always {
Expand All @@ -140,8 +140,7 @@ pipeline {

recordIssues(skipBlames: true, enabledForFailure: true,
tools: [
spotBugs(pattern: '**/build/reports/spotbugs/*.xml', useRankAsPriority: true),
pmdParser(pattern: '**/build/reports/pmd/*.xml')
spotBugs(pattern: '**/build/reports/spotbugs/*.xml', useRankAsPriority: true)
])

recordIssues(skipBlames: true, enabledForFailure: true,
Expand Down
10 changes: 3 additions & 7 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,14 @@ repositories {

maven {
name = "Terasology Artifactory"
url = URI("http://artifactory.terasology.org/artifactory/virtual-repo-live")
@Suppress("UnstableApiUsage")
isAllowInsecureProtocol = true // 😱
url = URI("https://artifactory.terasology.io/artifactory/virtual-repo-live")
}

// TODO MYSTERY: As of November 7th 2011 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?
// TODO MYSTERY: As of November 7th 2021 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?
// We've been using it that way for *years* and nothing likewise changed in the area for years as well. This seems to work ....
maven {
name = "Terasology snapshot locals"
url = URI("http://artifactory.terasology.org/artifactory/terasology-snapshot-local")
@Suppress("UnstableApiUsage")
isAllowInsecureProtocol = true // 😱
url = URI("https://artifactory.terasology.io/artifactory/terasology-snapshot-local")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,14 @@ repositories {
} else {
// Our default is the main virtual repo containing everything except repos for testing Artifactory itself
name = "Terasology Artifactory"
url = URI("http://artifactory.terasology.org/artifactory/virtual-repo-live")
isAllowInsecureProtocol = true // 😱
url = URI("https://artifactory.terasology.io/artifactory/virtual-repo-live")
}
}

// TODO MYSTERY: As of November 7th 2011 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?
// We've been using it that way for *years* and nothing likewise changed in the area for years as well. This seems to work ....
maven {
name = "Terasology snapshot locals"
url = URI("http://artifactory.terasology.org/artifactory/terasology-snapshot-local")
isAllowInsecureProtocol = true // 😱
url = URI("https://artifactory.terasology.io/artifactory/terasology-snapshot-local")
}
}
12 changes: 5 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ buildscript {
maven {
// required to provide runtime dependencies to build-logic.
name = "Terasology Artifactory"
url = "http://artifactory.terasology.org/artifactory/virtual-repo-live"
allowInsecureProtocol = true // 😱
url = "https://artifactory.terasology.io/artifactory/virtual-repo-live"
}

// TODO MYSTERY: As of November 7th 2011 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?

Check warning on line 17 in build.gradle

View check run for this annotation

Terasology Jenkins.io / Open Tasks Scanner

TODO

NORMAL: MYSTERY: As of November 7th 2011 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?
// We've been using it that way for *years* and nothing likewise changed in the area for years as well. This seems to work ....
maven {
name = "Terasology snapshot locals"
url = "http://artifactory.terasology.org/artifactory/terasology-snapshot-local"
allowInsecureProtocol = true // 😱
url = "https://artifactory.terasology.io/artifactory/terasology-snapshot-local"
}
}

Expand Down Expand Up @@ -64,7 +62,7 @@ safe to use, any newer than 11 may cause issues.
If you encounter oddities try Java 11.
See https://github.com/MovingBlocks/Terasology/issues/3976.
Current detected Java version is ${JavaVersion.current()}
from vendor ${System.getProperty("java.vendor")}
from vendor ${System.getProperty("java.vendor")}
located at ${System.getProperty("java.home")}
""")
}
Expand Down Expand Up @@ -315,7 +313,7 @@ task assembleBuildHarness(type: Zip) {
}

from('templates') {
include 'build.gradle'
include 'build.gradle'
}

from('.') {
Expand All @@ -331,4 +329,4 @@ task assembleBuildHarness(type: Zip) {

// set the archive name
archiveFileName.set('build-harness.zip')
}
}
6 changes: 2 additions & 4 deletions config/gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ publishing {

if (rootProject.hasProperty("publishRepo")) {
// This first option is good for local testing, you can set a full explicit target repo in gradle.properties
url = "http://artifactory.terasology.org/artifactory/$publishRepo"
allowInsecureProtocol true // 😱
url = "https://artifactory.terasology.io/artifactory/$publishRepo"
logger.info("Changing PUBLISH repoKey set via Gradle property to {}", publishRepo)
} else {
// Support override from the environment to use a different target publish org
Expand All @@ -38,8 +37,7 @@ publishing {
}

logger.info("The final deduced publish repo is {}", deducedPublishRepo)
url = "http://artifactory.terasology.org/artifactory/$deducedPublishRepo"
allowInsecureProtocol true
url = "https://artifactory.terasology.io/artifactory/$deducedPublishRepo"
}
}

Expand Down
6 changes: 2 additions & 4 deletions templates/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ buildscript {
maven {
// required to provide runtime dependencies to build-logic.
name = "Terasology Artifactory"
url = "http://artifactory.terasology.org/artifactory/virtual-repo-live"
allowInsecureProtocol = true // 😱
url = "https://artifactory.terasology.io/artifactory/virtual-repo-live"
}

// TODO MYSTERY: As of November 7th 2011 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?

Check warning on line 13 in templates/build.gradle

View check run for this annotation

Terasology Jenkins.io / Open Tasks Scanner

TODO

NORMAL: MYSTERY: As of November 7th 2011 virtual-repo-live could no longer be relied on for latest snapshots - Pro feature?
// We've been using it that way for *years* and nothing likewise changed in the area for years as well. This seems to work ....
maven {
name = "Terasology snapshot locals"
url = "http://artifactory.terasology.org/artifactory/terasology-snapshot-local"
allowInsecureProtocol = true // 😱
url = "https://artifactory.terasology.io/artifactory/terasology-snapshot-local"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/facades.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {
// MovingBlocks Artifactory instance for libs not readily available elsewhere plus our own libs
maven {
name "Terasology Artifactory"
url "http://artifactory.terasology.org/artifactory/repo"
url "https://artifactory.terasology.io/artifactory/repo"
}
}

Expand Down
2 changes: 1 addition & 1 deletion templates/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ org.gradle.jvmargs=-Xmx1024m
# To pass via CLI use: -Dorg.gradle.internal.publish.checksums.insecure=true

# Alternative resolution repo to use - this can be used to ignore "live" artifacts and only accept experimental ones.
# alternativeResolutionRepo=http://artifactory.terasology.org/artifactory/virtual-nanoware-and-remote
# alternativeResolutionRepo=https://artifactory.terasology.io/artifactory/virtual-nanoware-and-remote

# Credentials for publishing to Artifactory. Good for local testing
# mavenUser=
Expand Down

0 comments on commit f907533

Please sign in to comment.