Skip to content

Commit

Permalink
Switch to extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ryarnyah committed Dec 31, 2020
1 parent 5082f1c commit 65c3e15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Port of [QueryDSL](https://github.com/querydsl/querydsl) Maven plugin for Gradle
```kotlin
plugins {
//...
id("com.github.ryarnyah.querydsl") version "0.0.1"
id("com.github.ryarnyah.querydsl") version "0.0.2"
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GradleQueryDSLPlugin : Plugin<Project> {
jpaExporterTask.targetFolder,
genericExporterTask.targetFolder
)
val sourceSets: SourceSetContainer = project.convention.getByType(SourceSetContainer::class.java)
val sourceSets: SourceSetContainer = project.extensions.getByType(SourceSetContainer::class.java)
val main = sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME)
main.java.srcDirs(generatedSources)
}
Expand Down

0 comments on commit 65c3e15

Please sign in to comment.