Skip to content

Commit

Permalink
Merge branch 'master' of github.com:seelabfhdo/codegenerator-gradle-p…
Browse files Browse the repository at this point in the history
…lugin
  • Loading branch information
Frisch12 committed Mar 19, 2018
2 parents 91e2f23 + 413fd52 commit 1b161c3
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,36 @@ This Gradle plugin offers a generic api for generating code at compile time with

# Usage
```gradle
plugins {
id 'java'
id 'de.seelab.CodeGenerator' version '0.1.2'
}
codeGenerator {
generatorJar 'libs/my-code-generator.jar'
generatorJar 'liby/my-second-code-generator.jar'
}
```

## Old style:
```gradle
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.SeelabFhdo:CodeGeneratorPlugin:0.1"
classpath "gradle.plugin.com.github.SeelabFhdo:CodeGeneratorPlugin:0.1.2"
}
}
apply plugin: "java"
apply plugin: "de.seelab.CodeGenerator"
codeGenerator {
generatorJars ['libs/my-code-generator.jar']
generatorJar 'libs/my-code-generator.jar'
generatorJar 'liby/my-second-code-generator.jar'
}
```

Expand All @@ -34,6 +48,6 @@ allprojects {
}
dependencies {
compile 'com.github.SeelabFhdo:codegenerator-gradle-plugin:0.1'
compile 'com.github.SeelabFhdo:codegenerator-gradle-plugin:0.1.2'
}
```

0 comments on commit 1b161c3

Please sign in to comment.