Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ben/mv5/core api #667

Merged
merged 4 commits into from
Nov 22, 2024
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
30 changes: 24 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ plugins {
id 'java-library'
id 'maven-publish'
id 'checkstyle'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'com.gradleup.shadow' version '8.3.5'
}

version = System.getenv('GITHUB_VERSION') ?: 'local'
group = 'com.onarandombox.multiverseportals'
group = 'org.mvplugins.multiverse.portals'
description = 'Multiverse-Portals'

java.sourceCompatibility = JavaVersion.VERSION_11
compileJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

repositories {
mavenLocal()
Expand All @@ -33,10 +36,13 @@ repositories {

dependencies {
// Spigot
implementation 'org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT'
implementation('org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT') {
exclude group: 'junit', module: 'junit'
}

// Core
implementation 'com.onarandombox.multiversecore:Multiverse-Core:4.2.2'
// TODO update to correct version once we have it published
implementation 'org.mvplugins.multiverse.core:multiverse-core:local'
benwoo1110 marked this conversation as resolved.
Show resolved Hide resolved

//WorldEdit
implementation('com.sk89q.worldedit:worldedit-bukkit:7.2.9') {
Expand Down Expand Up @@ -125,8 +131,20 @@ shadowJar {

configurations = [project.configurations.api]

archiveFileName = "$baseName-$version.$extension"
archiveClassifier.set('')
}

build.dependsOn shadowJar
jar.enabled = false


tasks.register('runHabitatGenerator', JavaExec) {
classpath = configurations["compileClasspath"]
mainClass.set('org.mvplugins.multiverse.external.jvnet.hk2.generator.HabitatGenerator')

args = [
'--file', "build/libs/multiverse-portals-$version" + ".jar",
'--locator', 'Multiverse-Portals',
]
}
tasks.named("build") { finalizedBy("runHabitatGenerator") }
Comment on lines +141 to +150
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the heck is this?

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading