mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
Merge pull request #401 from corda/clint-kaptexplicitidea
Generated files in node-schemas are now correctly identified by IntelliJ
This commit is contained in:
commit
bfdb31e9cf
@ -1,9 +1,14 @@
|
|||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
apply plugin: 'kotlin-kapt'
|
apply plugin: 'kotlin-kapt'
|
||||||
|
apply plugin: 'idea'
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
|
|
||||||
description 'Corda node database schemas'
|
description 'Corda node database schemas'
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
ext.generatedSourcesDir = "${projectDir}/generated/source/kapt/main"
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -26,7 +31,7 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
generated {
|
generated {
|
||||||
java {
|
java {
|
||||||
srcDir "${projectDir}/generated/source/kapt/main/"
|
srcDir generatedSourcesDir
|
||||||
compileClasspath += sourceSets.main.compileClasspath + sourceSets.main.output
|
compileClasspath += sourceSets.main.compileClasspath + sourceSets.main.output
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -76,3 +81,9 @@ project.afterEvaluate {
|
|||||||
jar {
|
jar {
|
||||||
from sourceSets.generated.output
|
from sourceSets.generated.output
|
||||||
}
|
}
|
||||||
|
|
||||||
|
idea {
|
||||||
|
module {
|
||||||
|
sourceDirs += project.sourceSets.generated.allSource
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user