Skip to content

Commit fa8938e

Browse files
committed
Bundle kotlin-reflect dependency.
1 parent 3fbf30e commit fa8938e

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ test {
9797
}
9898

9999
dependencies {
100-
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
101-
compile files("${System.properties['java.home']}/../lib/tools.jar")
100+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
101+
implementation "org.jetbrains.kotlin:kotlin-reflect"
102+
implementation files("${System.properties['java.home']}/../lib/tools.jar")
102103

103104
testCompile group: 'junit', name: 'junit', version: '4.11'
104105
}

src/main/kotlin/com/gmail/blueboxware/libgdxplugin/utils/compat/Utils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.gmail.blueboxware.libgdxplugin.utils.compat
22

3+
import com.intellij.util.castSafelyTo
34
import org.jetbrains.kotlin.idea.references.SyntheticPropertyAccessorReference
4-
import org.jetbrains.kotlin.utils.addToStdlib.cast
55
import kotlin.reflect.KProperty1
66
import kotlin.reflect.full.memberProperties
77

@@ -30,7 +30,7 @@ fun SyntheticPropertyAccessorReference.isGetter(): Boolean {
3030
return this::class
3131
.memberProperties
3232
.firstOrNull { it.name == "getter" }
33-
?.cast<KProperty1<SyntheticPropertyAccessorReference, Boolean>>()
33+
?.castSafelyTo<KProperty1<SyntheticPropertyAccessorReference, Boolean>>()
3434
?.get(this)
3535
?: false
3636
}

src/main/resources/META-INF/plugin.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<id>com.gmail.blueboxware.libgdxplugin</id>
1919
<!--suppress PluginXmlCapitalization -->
2020
<name>libGDX</name>
21-
<version>1.22</version>
21+
<version>1.22.1</version>
2222
<vendor url="https://github.com/BlueBoxWare/LibGDXPlugin">Blue Box Ware</vendor>
2323

2424
<description><![CDATA[
@@ -31,6 +31,10 @@
3131
]]></description>
3232

3333
<change-notes><![CDATA[
34+
<b>1.22.1</b>
35+
<ul>
36+
<li>Bundle kotlin-reflect dependency.</li>
37+
</ul>
3438
<b>1.22</b>
3539
<ul>
3640
<li>Compatibility with Kotlin plugin 1.4.20+ (<a href="https://github.com/BlueBoxWare/LibGDXPlugin/issues/23">#23</a>)</li>

versions.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
ext {
22

3-
pluginVersion = '1.22'
3+
pluginVersion = '1.22.1'
44

55
kotlinVersion = '1.4.10'
66

77
intellijPluginVersion = '0.4.26'
88

99
// ideaVersion = '2019.3.3'
10-
ideaVersion = 'LATEST-EAP-SNAPSHOT'
10+
ideaVersion = '2020.2.3'
1111

12-
studioVersion = '193.6911.18'
12+
studioVersion = '2020.1'
1313

14-
useStudio = true
14+
useStudio = false
1515
runStudio = false
1616

1717
}

0 commit comments

Comments
 (0)