Skip to content

Commit

Permalink
Add jpenilla.run-velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
voruti committed Jul 13, 2023
1 parent a2761fe commit 53a1ed2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'eclipse'
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.7"
id "xyz.jpenilla.run-velocity" version "2.1.0"
}

group = 'voruti'
Expand All @@ -15,9 +16,11 @@ repositories {
}
}

def velocityApiVersion = '3.2.0-SNAPSHOT'

dependencies {
compileOnly 'com.velocitypowered:velocity-api:3.2.0-SNAPSHOT'
annotationProcessor 'com.velocitypowered:velocity-api:3.2.0-SNAPSHOT'
compileOnly "com.velocitypowered:velocity-api:$velocityApiVersion"
annotationProcessor "com.velocitypowered:velocity-api:$velocityApiVersion"
}

def targetJavaVersion = 11
Expand Down Expand Up @@ -53,3 +56,12 @@ sourceSets.main.java.srcDir(generateTemplates.map { it.outputs })

rootProject.idea.project.settings.taskTriggers.afterSync generateTemplates
project.eclipse.synchronizationTasks(generateTemplates)

tasks {
runVelocity {
// Configure the Velocity version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
velocityVersion(velocityApiVersion)
}
}

0 comments on commit 53a1ed2

Please sign in to comment.