Skip to content

Commit

Permalink
fix velocity again
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Feb 23, 2023
1 parent c22fd2d commit f9d962c
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions chatty-velocity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,8 @@ dependencies {

tasks.build {
dependsOn(tasks.shadowJar.get())
dependsOn("generateTemplates")
}

val templateSource = file("src/main/templates")
val templateDest = layout.buildDirectory.dir("generated/sources/templates")
tasks.create<Copy>("generateTemplates") {
val props = mapOf(
"version" to project.version
)
inputs.properties(props)
from(templateSource)
into(templateDest)
expand(props)
}


val copyJar: String? by project
val pluginPath = project.findProperty("velocity_plugin_path")

Expand All @@ -64,17 +50,3 @@ if(copyJar != "false" && pluginPath != null) {
}
}
}

sourceSets.main {
java {
srcDir(templateDest)
}
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
artifact(tasks.shadowJar.get())
}
}
}

0 comments on commit f9d962c

Please sign in to comment.