mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Only scan used repositories
This commit is contained in:
@ -8,6 +8,7 @@ plugins {
|
||||
repositories {
|
||||
jcenter()
|
||||
gradlePluginPortal()
|
||||
/*
|
||||
maven {
|
||||
name = "Forge Maven"
|
||||
url = uri("https://files.minecraftforge.net/maven")
|
||||
@ -20,15 +21,16 @@ repositories {
|
||||
name = "sponge"
|
||||
url = uri("https://repo.spongepowered.org/maven")
|
||||
}
|
||||
*/
|
||||
maven {
|
||||
name = "EngineHub Repository"
|
||||
url = uri("https://maven.enginehub.org/repo/")
|
||||
content {
|
||||
excludeGroup("net.milkbowl.vault")
|
||||
includeGroup("com.sk89q")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
configurations.all {
|
||||
resolutionStrategy {
|
||||
// Fabric needs this.
|
||||
@ -39,27 +41,32 @@ configurations.all {
|
||||
)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
val properties = Properties().also { props ->
|
||||
project.projectDir.resolveSibling("gradle.properties").bufferedReader().use {
|
||||
props.load(it)
|
||||
}
|
||||
}
|
||||
/*
|
||||
val loomVersion: String = properties.getProperty("loom.version")
|
||||
val mixinVersion: String = properties.getProperty("mixin.version")
|
||||
*/
|
||||
|
||||
dependencies {
|
||||
implementation(gradleApi())
|
||||
implementation("gradle.plugin.net.minecrell:licenser:0.4.1")
|
||||
implementation("org.ajoberstar.grgit:grgit-gradle:4.0.2")
|
||||
implementation("com.github.jengelman.gradle.plugins:shadow:5.2.0")
|
||||
implementation("gradle.plugin.org.cadixdev.gradle:licenser:0.5.0")
|
||||
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.0")
|
||||
implementation("com.github.jengelman.gradle.plugins:shadow:6.1.0")
|
||||
implementation("net.ltgt.apt-eclipse:net.ltgt.apt-eclipse.gradle.plugin:0.21")
|
||||
implementation("net.ltgt.apt-idea:net.ltgt.apt-idea.gradle.plugin:0.21")
|
||||
//implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.16.0")
|
||||
//implementation("gradle.plugin.org.spongepowered:spongegradle:0.9.0")
|
||||
//implementation("net.minecraftforge.gradle:ForgeGradle:3.0.181")
|
||||
//implementation("net.fabricmc:fabric-loom:$loomVersion")
|
||||
//implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
||||
/*
|
||||
implementation("gradle.plugin.com.mendhak.gradlecrowdin:plugin:0.1.0")
|
||||
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.1.0")
|
||||
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.16.0")
|
||||
implementation("gradle.plugin.org.spongepowered:spongegradle:0.9.0")
|
||||
implementation("net.minecraftforge.gradle:ForgeGradle:3.0.181")
|
||||
implementation("net.fabricmc:fabric-loom:$loomVersion")
|
||||
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
||||
*/
|
||||
}
|
||||
|
@ -7,21 +7,43 @@ fun Project.applyCommonConfiguration() {
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
maven { url = uri("https://mvn.intellectualsites.com/content/groups/public/") }
|
||||
maven { url = uri("https://plotsquared.com/mvn/") }
|
||||
maven {
|
||||
url = uri("https://maven.enginehub.org/repo/")
|
||||
name = "IntellectualSites"
|
||||
url = uri("https://mvn.intellectualsites.com/content/groups/public/")
|
||||
content {
|
||||
excludeGroup("net.milkbowl.vault")
|
||||
includeGroup("com.plotsquared")
|
||||
includeGroup("com.intellectualsites.paster")
|
||||
includeGroup("com.github.intellectualsites.plotsquared")
|
||||
}
|
||||
}
|
||||
maven {
|
||||
name = "EngineHub Repository"
|
||||
url = uri("https://maven.enginehub.org/repo/")
|
||||
content {
|
||||
includeGroup("com.sk89q")
|
||||
includeGroup("com.sk89q.lib")
|
||||
includeGroupByRegex("org.enginehub.*")
|
||||
}
|
||||
}
|
||||
maven {
|
||||
name = "OSS Sonatype Snapshots"
|
||||
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
|
||||
}
|
||||
maven {
|
||||
name = "OSS Sonatype Releases"
|
||||
url = uri("https://oss.sonatype.org/content/repositories/releases/")
|
||||
}
|
||||
maven {
|
||||
name = "Athion"
|
||||
url = uri("https://ci.athion.net/plugin/repository/tools/")
|
||||
content {
|
||||
includeGroup("com.massivecraft")
|
||||
includeGroup("com.thevoxelbox.voxelsniper")
|
||||
includeGroup("com.palmergames.bukkit")
|
||||
includeGroup("net.fabiozumbi12")
|
||||
includeGroupByRegex("com.destroystokyo.*")
|
||||
}
|
||||
}
|
||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots/") }
|
||||
maven { url = uri("https://ci.athion.net/plugin/repository/tools/") }
|
||||
maven { url = uri("https://repo.destroystokyo.com/repository/maven-public") }
|
||||
ivy { url = uri("https://ci.athion.net/job")
|
||||
patternLayout {
|
||||
artifact("/[organisation]/[revision]/artifact/[module].[ext]")
|
||||
}}
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
|
@ -29,7 +29,7 @@ fun Project.applyPlatformAndCoreConfiguration() {
|
||||
|
||||
configure<JavaPluginConvention> {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = sourceCompatibility
|
||||
}
|
||||
|
||||
tasks
|
||||
@ -55,11 +55,11 @@ fun Project.applyPlatformAndCoreConfiguration() {
|
||||
|
||||
dependencies {
|
||||
"compileOnly"("org.jetbrains:annotations:20.1.0")
|
||||
"testImplementation"("org.junit.jupiter:junit-jupiter-api:${Versions.JUNIT}")
|
||||
"testImplementation"("org.junit.jupiter:junit-jupiter-params:${Versions.JUNIT}")
|
||||
"testImplementation"("org.mockito:mockito-core:${Versions.MOCKITO}")
|
||||
"testImplementation"("org.mockito:mockito-junit-jupiter:${Versions.MOCKITO}")
|
||||
"testRuntime"("org.junit.jupiter:junit-jupiter-engine:${Versions.JUNIT}")
|
||||
"testImplementation"("org.junit.jupiter:junit-jupiter-api:5.6.1")
|
||||
"testImplementation"("org.junit.jupiter:junit-jupiter-params:5.6.1")
|
||||
"testImplementation"("org.mockito:mockito-core:3.3.3")
|
||||
"testImplementation"("org.mockito:mockito-junit-jupiter:3.3.3")
|
||||
"testRuntime"("org.junit.jupiter:junit-jupiter-engine:5.6.1")
|
||||
}
|
||||
|
||||
// Java 8 turns on doclint which we fail
|
||||
|
@ -1,18 +1,6 @@
|
||||
/*
|
||||
import org.gradle.api.Project
|
||||
|
||||
object Versions {
|
||||
const val TEXT = "3.0.4"
|
||||
const val TEXT_EXTRAS = "3.0.6"
|
||||
const val PISTON = "0.5.6"
|
||||
const val AUTO_VALUE = "1.7"
|
||||
const val JUNIT = "5.6.1"
|
||||
const val MOCKITO = "3.3.3"
|
||||
const val LOGBACK = "1.2.3"
|
||||
const val FAST_UTIL = "8.2.1"
|
||||
const val GUAVA = "21.0"
|
||||
const val GSON = "2.8.0"
|
||||
}
|
||||
|
||||
// Properties that need a project reference to resolve:
|
||||
class ProjectVersions(project: Project) {
|
||||
val loom = project.rootProject.property("loom.version")
|
||||
@ -21,3 +9,5 @@ class ProjectVersions(project: Project) {
|
||||
|
||||
val Project.versions
|
||||
get() = ProjectVersions(this)
|
||||
|
||||
*/
|
||||
|
Reference in New Issue
Block a user