Skip to content

Commit

Permalink
Merge pull request #251 from LossyDragon/generators
Browse files Browse the repository at this point in the history
Migrate VersionGen and SteamLanguageGen to Kotlin
  • Loading branch information
LossyDragon authored Jan 24, 2024
2 parents de222b4 + a7c4ddb commit 15b3330
Show file tree
Hide file tree
Showing 46 changed files with 1,557 additions and 1,587 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.{kt,kts}]
indent_size = 4
ktlint_disabled_rules=no-wildcard-imports

[*.{yml,yaml}]
indent_size = 2
24 changes: 24 additions & 0 deletions .run/javasteam [_buildSrc_ktlintFormat].run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="javasteam [:buildSrc:ktlintFormat]" type="GradleRunConfiguration" factoryName="Gradle" nameIsGenerated="true">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value=":buildSrc:ktlintFormat" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ plugins {
alias(libs.plugins.maven.publish)
alias(libs.plugins.protobuf.gradle)
id("jacoco")
id("projectversiongen")
id("signing")
id("steamlanguagegen")
projectversiongen
steamlanguagegen
}

allprojects {
group = "in.dragonbra"
version = "1.3.0"
version = "1.4.0-SNAPSHOT"
}

repositories {
Expand Down
35 changes: 0 additions & 35 deletions buildSrc/build.gradle

This file was deleted.

31 changes: 31 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
plugins {
`kotlin-dsl`
`java-gradle-plugin`
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
}

version = "1.0.0"

repositories {
mavenCentral()
}

dependencies {
implementation(gradleApi())

// https://mvnrepository.com/artifact/commons-io/commons-io
implementation("commons-io:commons-io:2.14.0")
}

gradlePlugin {
plugins {
create("steamlanguagegen") {
id = "steamlanguagegen"
implementationClass = "in.dragonbra.generators.steamlanguage.SteamLanguageGenPlugin"
}
create("projectversiongen") {
id = "projectversiongen"
implementationClass = "in.dragonbra.generators.versions.VersionGenPlugin"
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 15b3330

Please sign in to comment.