Skip to content

Commit

Permalink
Merge pull request #17 from marc-christian-schulze/gradle_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-christian-schulze authored Dec 26, 2024
2 parents ecce134 + 3e95416 commit bfc1859
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ Add the plugin to your maven build:
</plugin>
```

Add the plugin to your gradle build:
```Gradle
plugins {
id('java')
id('com.github.marc-christian-schulze.structs4java')
}
```

Define some structures you would like to read/write in a `*.structs` file under `src/main/structs`, e.g. `FileFormat.structs`:
```C++
package com.mycompany.projectx;
Expand Down
5 changes: 5 additions & 0 deletions structs4java-gradle-plugin/plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ gradlePlugin {
val structs4java by plugins.creating {
id = "com.github.marc-christian-schulze.structs4java"
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")
}
}

Expand Down

0 comments on commit bfc1859

Please sign in to comment.