Skip to content

Commit

Permalink
Merge pull request #20 from marc-christian-schulze/gradle_plugin
Browse files Browse the repository at this point in the history
More fixes
  • Loading branch information
marc-christian-schulze authored Dec 27, 2024
2 parents dd755d5 + 541da1e commit e819ffe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ jobs:
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PORTAL_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PORTAL_PUBLISH_SECRET }}
run: cd structs4java-gradle-plugin && ./gradlew publishPlugins -Dgradle.publish.key=${{ secrets.GRADLE_PORTAL_PUBLISH_KEY }} -Dgradle.publish.secret=${{ secrets.GRADLE_PORTAL_PUBLISH_SECRET }} -Pversion=${{ github.event.release.tag_name }} -Porg.gradle.configuration-cache=false
run: cd structs4java-gradle-plugin && ./gradlew publishPlugins -Dgradle.publish.key=${{ secrets.GRADLE_PORTAL_PUBLISH_KEY }} -Dgradle.publish.secret=${{ secrets.GRADLE_PORTAL_PUBLISH_SECRET }} -Pversion=${{ github.event.release.tag_name }} --no-configuration-cache

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Add the plugin to your gradle build:
```Gradle
plugins {
id('java')
id('com.github.marc-christian-schulze.structs4java')
id('io.github.marc-christian-schulze.structs4java.structs4java-gradle-plugin')
}
```

Expand Down
5 changes: 3 additions & 2 deletions structs4java-gradle-plugin/plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ dependencies {
gradlePlugin {
// Define the plugin
val structs4java by plugins.creating {
id = "com.github.marc-christian-schulze.structs4java"
group = "io.github.marc-christian-schulze.structs4java"
id = "io.github.marc-christian-schulze.structs4java.structs4java-gradle-plugin"
implementationClass = "org.structs4java.Structs4javaGradlePlugin"
website.set("https://github.com/marc-christian-schulze/structs4java")
vcsUrl.set("https://github.com/marc-christian-schulze/structs4java.git")
displayName = "Structs4Java Gradle Plugin"
description = "Structs4Java is a code generator based on C/C++ structures."
tags = listOf("Java", "Gradle", "plugin", "structs")
tags = listOf("generator", "structs")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private File getInterfaceFile() {
writeString(getBuildFile(), """
plugins {
id('java')
id('com.github.marc-christian-schulze.structs4java')
id('io.github.marc-christian-schulze.structs4java.structs4java-gradle-plugin')
}
""");
writeString(getInterfaceFile(), """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Structs4javaGradlePluginTest {
@Test void pluginRegistersATask() {
// Create a test project and apply the plugin
Project project = ProjectBuilder.builder().build();
project.getPlugins().apply("com.github.marc-christian-schulze.structs4java");
project.getPlugins().apply("io.github.marc-christian-schulze.structs4java.structs4java-gradle-plugin");

// Verify the result
assertNotNull(project.getTasks().findByName("compileStructs"));
Expand Down

0 comments on commit e819ffe

Please sign in to comment.