File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
gradle/templates/velocity Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 )\n class " .trimMargin()
5656 )
5757 )
5858 }
You can’t perform that action at this time.
0 commit comments