-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from SchwarzIT/feature/ksp
Feature/ksp
- Loading branch information
Showing
29 changed files
with
551 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
apply plugin: 'kotlin' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'jacoco' | ||
apply plugin: 'pmd' | ||
apply plugin: 'kotlin-kapt' | ||
apply plugin: "org.jlleitschuh.gradle.ktlint" | ||
|
||
targetCompatibility = '1.8' | ||
sourceCompatibility = '1.8' | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId = 'com.schwarz.kokain' | ||
artifactId = 'kokain-generator-lib' | ||
version = '0.1' | ||
from components.java | ||
} | ||
} | ||
} | ||
|
||
|
||
jacoco { | ||
toolVersion = "0.8.7" | ||
} | ||
|
||
jacocoTestReport { | ||
group 'verification' | ||
dependsOn 'test' | ||
|
||
reports { | ||
|
||
xml.enabled = true | ||
html.enabled = false | ||
} | ||
} | ||
|
||
compileKotlin { | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
} | ||
compileTestKotlin { | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation 'com.squareup:kotlinpoet:1.12.0' | ||
api project(path: ':kokain-core-api', configuration: 'default') | ||
implementation 'org.apache.commons:commons-lang3:3.4' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...in-generator-lib/src/main/java/com/schwarz/kokain/kokaingeneratorlib/model/IEBeanModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.schwarz.kokain.kokaingeneratorlib.model | ||
|
||
import com.schwarz.kokain.api.EBean | ||
import com.squareup.kotlinpoet.ClassName | ||
import com.squareup.kotlinpoet.KModifier | ||
import com.squareup.kotlinpoet.TypeName | ||
|
||
interface IEBeanModel { | ||
|
||
val scope: EBean.Scope | ||
|
||
val sourceClazzSimpleName: String | ||
|
||
val generatedClazzSimpleName: String | ||
get() = sourceClazzSimpleName + "Shadow" | ||
|
||
val `package`: String | ||
|
||
val generatedClazzTypeName: TypeName | ||
get() = ClassName(`package`, generatedClazzSimpleName) | ||
|
||
val classVisibility: KModifier | ||
} |
19 changes: 19 additions & 0 deletions
19
...generator-lib/src/main/java/com/schwarz/kokain/kokaingeneratorlib/model/IEFactoryModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.schwarz.kokain.kokaingeneratorlib.model | ||
|
||
import com.squareup.kotlinpoet.ClassName | ||
import com.squareup.kotlinpoet.TypeName | ||
|
||
interface IEFactoryModel { | ||
|
||
val additionalFactories: List<TypeName> | ||
|
||
val sourceClazzSimpleName: String | ||
|
||
val generatedClazzSimpleName: String | ||
get() = sourceClazzSimpleName + "Shadow" | ||
|
||
val `package`: String | ||
|
||
val generatedClazzTypeName: TypeName | ||
get() = ClassName(`package`, generatedClazzSimpleName) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
apply plugin: 'kotlin' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'jacoco' | ||
apply plugin: 'pmd' | ||
apply plugin: 'kotlin-kapt' | ||
apply plugin: "org.jlleitschuh.gradle.ktlint" | ||
|
||
targetCompatibility = '1.8' | ||
sourceCompatibility = '1.8' | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
groupId = 'com.schwarz.kokain' | ||
artifactId = 'kokain-ksp' | ||
version = '0.1' | ||
from components.java | ||
} | ||
} | ||
} | ||
|
||
|
||
jacoco { | ||
toolVersion = "0.8.7" | ||
} | ||
|
||
jacocoTestReport { | ||
group 'verification' | ||
dependsOn 'test' | ||
|
||
reports { | ||
|
||
xml.enabled = true | ||
html.enabled = false | ||
} | ||
} | ||
|
||
compileKotlin { | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
} | ||
compileTestKotlin { | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" | ||
implementation 'com.squareup:kotlinpoet:1.12.0' | ||
implementation("com.squareup:kotlinpoet-ksp:1.12.0") | ||
implementation("com.google.devtools.ksp:symbol-processing-api:1.6.21-1.0.6") | ||
testImplementation 'junit:junit:4.12' | ||
testImplementation project(path: ':kokain-core-api', configuration: 'default') | ||
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.9' | ||
testImplementation 'org.mockito:mockito-core:1.10.19' | ||
implementation project(path: ':kokain-generator-lib', configuration: 'default') | ||
} |
Oops, something went wrong.