Skip to content

Commit

Permalink
feat: Add support for Kotlin 1.3.50
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianishere committed Aug 28, 2019
1 parent 15eabe2 commit a66b9bd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To use the plugin, just apply the plugin in your `build.gradle`:

```groovy
plugins {
id 'nl.fabianm.kotlin.plugin.generated' version '1.3.3'
id 'nl.fabianm.kotlin.plugin.generated' version '1.4.0'
}
```

Expand All @@ -32,7 +32,8 @@ version you are using:
| **Kotlin** | **Plugin** |
|:----------:|:----------:|
| 1.2.* | 1.0 |
| 1.3.* | 1.3.3 |
| 1.3.0+ | 1.3.3 |
| 1.3.50+| 1.4.0 |

You can optionally configure the plugin as shown below:

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
*/

plugins {
kotlin("jvm") version "1.3.31" apply false
kotlin("jvm") version "1.3.50" apply false
id("org.jlleitschuh.gradle.ktlint") version "8.2.0" apply false
id("com.github.johnrengelman.shadow") version "5.0.0" apply false
}

allprojects {
group = "nl.fabianm.kotlin.plugin.generated"
version = "1.3.3"
version = "1.4.0"

extra["junitJupiterVersion"] = "5.4.2"
extra["junitPlatformVersion"] = "1.4.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,5 @@ fun <T> ProjectExtensionDescriptor<T>.registerExtensionAsFirst(project: Project,
Extensions.getArea(project)
.getExtensionPoint(extensionPointName)
.let { it as ExtensionPointImpl }
.registerExtension(extension, LoadingOrder.LAST)
.registerExtension(extension, LoadingOrder.LAST) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class GeneratedKotlinGradleSubplugin : KotlinGradleSubplugin<AbstractCompile> {
companion object {
private const val GENERATED_ARTIFACT_NAME = "plugin-gradle"
private const val GENERATED_GROUP_ID = "nl.fabianm.kotlin.plugin.generated"
private const val GENERATED_VERSION = "1.3.3"
private const val GENERATED_VERSION = "1.4.0"
private const val GENERATED_COMPILER_PLUGIN_ID = "nl.fabianm.kotlin.plugin.generated"
private val ANNOTATION_ARG_NAME = "annotation"
private val VISIBLE_ARG_NAME = "visible"
Expand Down
4 changes: 2 additions & 2 deletions plugin-idea/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ tasks.jar {
/* IntelliJ */
intellij {
pluginName = "kotlin-plugin-generated"
version = "2019.1"
setPlugins("gradle", "org.jetbrains.kotlin:1.3.31-release-IJ2019.1-1")
version = "2019.2"
setPlugins("gradle", "org.jetbrains.kotlin:1.3.50-release-IJ2019.2-1")
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ internal object GeneratedImportHandler {
var isEnabled = false
val oldPluginClasspaths = (commonArguments.pluginClasspaths ?: emptyArray()).filterTo(mutableListOf()) {
val match = regex.matches(it) && validateJar(it, implementationTitle)
logger.info("$it [match=$match]")
if (match) {
logger.info("$it [match=$match]")
isEnabled = true
}
!match
Expand Down

0 comments on commit a66b9bd

Please sign in to comment.