3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-02 17:40:09 +01:00

ci: Cleanup and finish transition

Dieser Commit ist enthalten in:
NotMyFault 2021-11-22 16:56:20 +01:00
Ursprung 7d5659aeac
Commit 52293f54e8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
4 geänderte Dateien mit 14 neuen und 25 gelöschten Zeilen

Datei anzeigen

@ -2,6 +2,11 @@ import org.ajoberstar.grgit.Grgit
import java.time.format.DateTimeFormatter import java.time.format.DateTimeFormatter
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED import org.gradle.api.tasks.testing.logging.TestLogEvent.FAILED
import java.net.URI
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
logger.lifecycle(""" logger.lifecycle("""
******************************************* *******************************************
@ -66,3 +71,12 @@ allprojects {
} }
applyCommonConfiguration() applyCommonConfiguration()
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}

Datei anzeigen

@ -29,5 +29,4 @@ dependencies {
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.0") implementation("org.ajoberstar.grgit:grgit-gradle:4.1.0")
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0") implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.0")
implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.2.0") implementation("io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:1.2.0")
implementation("io.github.gradle-nexus:publish-plugin:1.1.0")
} }

Datei anzeigen

@ -1,5 +1,4 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import io.github.gradlenexus.publishplugin.NexusPublishExtension
import org.gradle.api.Plugin import org.gradle.api.Plugin
import org.gradle.api.Project import org.gradle.api.Project
import org.gradle.api.artifacts.ExternalModuleDependency import org.gradle.api.artifacts.ExternalModuleDependency
@ -23,7 +22,6 @@ import org.gradle.kotlin.dsl.named
import org.gradle.kotlin.dsl.provideDelegate import org.gradle.kotlin.dsl.provideDelegate
import org.gradle.kotlin.dsl.register import org.gradle.kotlin.dsl.register
import org.gradle.plugins.signing.SigningExtension import org.gradle.plugins.signing.SigningExtension
import java.net.URI
import javax.inject.Inject import javax.inject.Inject
fun Project.applyLibrariesConfiguration() { fun Project.applyLibrariesConfiguration() {
@ -32,7 +30,6 @@ fun Project.applyLibrariesConfiguration() {
apply(plugin = "maven-publish") apply(plugin = "maven-publish")
apply(plugin = "com.github.johnrengelman.shadow") apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "signing") apply(plugin = "signing")
apply(plugin = "io.github.gradle-nexus.publish-plugin")
configurations { configurations {
create("shade") create("shade")
@ -229,15 +226,6 @@ fun Project.applyLibrariesConfiguration() {
} }
} }
configure<NexusPublishExtension> {
repositories {
sonatype {
nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
} }
// A horrible hack because `softwareComponentFactory` has to be gotten via plugin // A horrible hack because `softwareComponentFactory` has to be gotten via plugin

Datei anzeigen

@ -13,8 +13,6 @@ import org.gradle.kotlin.dsl.provideDelegate
import org.gradle.kotlin.dsl.register import org.gradle.kotlin.dsl.register
import org.gradle.kotlin.dsl.the import org.gradle.kotlin.dsl.the
import org.gradle.plugins.signing.SigningExtension import org.gradle.plugins.signing.SigningExtension
import io.github.gradlenexus.publishplugin.NexusPublishExtension
import java.net.URI
fun Project.applyPlatformAndCoreConfiguration() { fun Project.applyPlatformAndCoreConfiguration() {
applyCommonConfiguration() applyCommonConfiguration()
@ -24,7 +22,6 @@ fun Project.applyPlatformAndCoreConfiguration() {
apply(plugin = "maven-publish") apply(plugin = "maven-publish")
apply(plugin = "com.github.johnrengelman.shadow") apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "signing") apply(plugin = "signing")
apply(plugin = "io.github.gradle-nexus.publish-plugin")
applyCommonJavaConfiguration( applyCommonJavaConfiguration(
sourcesJar = name in setOf("worldedit-core", "worldedit-bukkit"), sourcesJar = name in setOf("worldedit-core", "worldedit-bukkit"),
@ -116,15 +113,6 @@ fun Project.applyPlatformAndCoreConfiguration() {
} }
} }
configure<NexusPublishExtension> {
repositories {
sonatype {
nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
if (name != "worldedit-fabric") { if (name != "worldedit-fabric") {
configurations["compileClasspath"].apply { configurations["compileClasspath"].apply {
resolutionStrategy.componentSelection { resolutionStrategy.componentSelection {