Compare commits
8 Commits
master
...
new_api_ge
| Author | SHA1 | Date |
|---|---|---|
|
|
5a57494f80 | |
|
|
89fd26a437 | |
|
|
9b9fc3bbcd | |
|
|
649b070048 | |
|
|
97887ec7ef | |
|
|
11b9751b44 | |
|
|
fa2ec52ed1 | |
|
|
0d2a5e6970 |
|
|
@ -12,7 +12,7 @@ abstract class ApiGeneratorPlugin : Plugin<Project> {
|
||||||
companion object {
|
companion object {
|
||||||
const val API_GENERATOR_CONFIG = "apiGenerator"
|
const val API_GENERATOR_CONFIG = "apiGenerator"
|
||||||
const val API_GENERATOR_EXT_NAME = "apiGenerator"
|
const val API_GENERATOR_EXT_NAME = "apiGenerator"
|
||||||
const val API_GENERATOR_DEFAULT_VERSION = "1.4.0-beta5"
|
const val API_GENERATOR_DEFAULT_VERSION = "1.4.0-beta9"
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun apply(target: Project) {
|
override fun apply(target: Project) {
|
||||||
|
|
@ -61,6 +61,8 @@ abstract class ApiGeneratorPlugin : Plugin<Project> {
|
||||||
outputLanguage.argName,
|
outputLanguage.argName,
|
||||||
"--specification-path",
|
"--specification-path",
|
||||||
pathToApiSchemes,
|
pathToApiSchemes,
|
||||||
|
"--android-calendar-library",
|
||||||
|
"JAVA_TIME",
|
||||||
"--kotlin-methods-generation-mode".takeIf { outputLanguage.methodOutputType != null },
|
"--kotlin-methods-generation-mode".takeIf { outputLanguage.methodOutputType != null },
|
||||||
outputLanguage.methodOutputType?.argName,
|
outputLanguage.methodOutputType?.argName,
|
||||||
"--output-path",
|
"--output-path",
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ class CpdLinter : Linter {
|
||||||
project.extensions.findByType<CpdExtension>()!!.apply {
|
project.extensions.findByType<CpdExtension>()!!.apply {
|
||||||
isSkipLexicalErrors = true
|
isSkipLexicalErrors = true
|
||||||
language = "kotlin"
|
language = "kotlin"
|
||||||
|
encoding = "UTF-8"
|
||||||
minimumTokenCount = 60
|
minimumTokenCount = 60
|
||||||
}
|
}
|
||||||
project.tasks.withType<Cpd> {
|
project.tasks.withType<Cpd> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue