Skip to content

Commit 6cc5ab4

Browse files
authored
Merge pull request #52 from EraTiem-Network/next
Next
2 parents 94f39c0 + 91e3520 commit 6cc5ab4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ subprojects {
3232
named<ShadowJar>("shadowJar") {
3333
archiveBaseName = rootProject.name
3434
archiveClassifier = this@subprojects.name.takeIf { it != "util" } ?: ""
35+
36+
dependencies {
37+
exclude(dependency(rootProject.libs.kotlin.stdlib.get()))
38+
}
3539
}
3640
}
3741
}

gradle/templates/velocity/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ tasks {
4747
?.let { pluginFile ->
4848

4949
val fileContent = pluginFile.readLines().joinToString("\n")
50-
val pluginAnnotationRegex = Regex("@Plugin\\((.|\\s)*\\)", RegexOption.MULTILINE)
50+
val pluginAnnotationRegex = Regex("@Plugin\\((.|\\s)*\\)\\s*class", RegexOption.MULTILINE)
5151

5252
pluginFile.writeText(
53-
fileContent.replace(
53+
fileContent.replaceFirst(
5454
pluginAnnotationRegex,
55-
"@Plugin(\n${pluginAnnotationContent()}\n)".trimMargin()
55+
"@Plugin(\n${pluginAnnotationContent()}\n)\nclass".trimMargin()
5656
)
5757
)
5858
}

0 commit comments

Comments
 (0)