Specify which repositories contain what content, put api annotation processing in a different spot for platforms

This commit is contained in:
Vankka 2022-02-03 21:43:03 +02:00
parent 3ff0c80e9a
commit 33d724212a
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0
5 changed files with 61 additions and 17 deletions

View File

@ -48,13 +48,20 @@ allprojects {
repositories {
// Snapshot repositories
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
//maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
//mavenLocal()
mavenLocal()
maven {
url 'https://nexus.scarsz.me/content/groups/public/'
content {
includeGroup 'github.scarsz'
includeGroup 'me.scarsz'
}
}
// Get dependencies from central last, everything else should be filtered
mavenCentral()
maven { url 'https://nexus.scarsz.me/content/groups/public/' }
}
dependencies {

View File

@ -2,19 +2,35 @@ apply from: rootProject.file('buildscript/runtime.gradle')
allprojects {
repositories {
maven { url 'https://papermc.io/repo/repository/maven-public/' }
exclusiveContent {
forRepository {
maven { url 'https://papermc.io/repo/repository/maven-public/' }
}
filter {
includeGroup 'com.destroystokyo.paper'
}
}
exclusiveContent {
forRepository {
maven { url 'https://nexus.scarsz.me/content/groups/public/' }
}
filter {
includeGroup 'net.milkbowl.vault'
}
}
}
dependencies {
// API
annotationProcessor project(':api')
// Platform
compileOnly 'com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT'
}
}
dependencies {
// API
annotationProcessor project(':api')
// Common
compileOnly project(':common:common-server')
implementation project(path: ':common:common-server', configuration: 'runtimeElements')
@ -26,7 +42,7 @@ dependencies {
runtimeDownloadApi 'net.kyori:adventure-platform-bukkit:' + rootProject.adventurePlatformVersion
// Integrations
compileOnly "com.github.MilkBowl:VaultAPI:1.7"
compileOnly 'net.milkbowl.vault:VaultAPI:1.7'
}
shadowJar {

View File

@ -2,19 +2,26 @@ apply from: rootProject.file('buildscript/runtime.gradle')
allprojects {
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
exclusiveContent {
forRepository {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
filter {
includeGroup 'net.md-5'
}
}
}
dependencies {
// API
annotationProcessor project(':api')
// Platform
compileOnly 'net.md-5:bungeecord-api:1.17-R0.1-SNAPSHOT'
}
}
dependencies {
// API
annotationProcessor project(':api')
// Common
implementation project(':common:common-proxy')

View File

@ -3,13 +3,17 @@ apply from: rootProject.file('buildscript/runtime.gradle')
var spongeVersion = '8.0.0'
allprojects {
repositories {
maven { url 'https://repo.spongepowered.org/maven/' }
exclusiveContent {
forRepository {
maven { url 'https://repo.spongepowered.org/maven/' }
}
filter {
includeGroup 'org.spongepowered'
}
}
}
dependencies {
// API
annotationProcessor project(':api')
// Platform
annotationProcessor 'org.spongepowered:spongeapi:' + spongeVersion
compileOnly 'org.spongepowered:spongeapi:' + spongeVersion
@ -17,6 +21,9 @@ allprojects {
}
dependencies {
// API
annotationProcessor project(':api')
// Common
implementation project(':common:common-server')

View File

@ -2,7 +2,14 @@ apply from: rootProject.file('buildscript/standalone.gradle')
apply plugin: 'net.kyori.blossom'
repositories {
maven { url 'https://nexus.velocitypowered.com/repository/maven-public/' }
exclusiveContent {
forRepository {
maven { url 'https://nexus.velocitypowered.com/repository/maven-public/' }
}
filter {
includeGroup 'com.velocitypowered'
}
}
}
var velocityVersion = '3.0.0'