Skip to content

Commit

Permalink
#4 Change Default Location to 'src/main/generated' #4
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaidak committed Mar 23, 2020
1 parent e188a7d commit 02c8b18
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.2.0

* [**#4** Change Default Location to 'src/main/generated](https://github.com/Scalified/gradle-sourcegen-plugin/issues/4)

# 1.1.0

* [**#3** Include As Main SourceSet](https://github.com/Scalified/gradle-sourcegen-plugin/issues/3)
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,19 @@ apply plugin: "com.scalified.plugins.gradle.sourcegen"

After applying the plugin, the following takes place:

1. A directory, specified in the **sourcegen.location** property (**src/generated/java** by default) created (if missing)
2. The created directory is configured to be used as an output for annotation processor generated sources
3. The created directory is configured for clean up during **clean** task
1. A directory, specified in the **sourcegen.location** property (**src/main/generated** by default) created (if missing)
2. The created directory is configured:
* as an output for annotation processor generated sources
* for clean up during **clean** task
* as marked generated sources root in IntelliJ IDEA (only if it is reside within **src/main**)

## Configuration

Currently the following configuration parameters supported (default values are shown):

```gradle
sourcegen {
location = 'src/generated/java' // directory for generated source code
location = 'src/main/generated' // directory for generated source code
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
allprojects {

group = "com.scalified"
version = "1.1.0"
version = "1.2.0"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ internal const val SOURCE_GEN_EXTENSION_NAME = "sourcegen"

open class SourceGenExtension {

var location = "src/generated/java"
var location = "src/main/generated"

}

0 comments on commit 02c8b18

Please sign in to comment.