Skip to content

Commit

Permalink
Bumped Kotlin to 1.5, Gradle to 7.0, maven-publish-plugin to 0.15.1 a…
Browse files Browse the repository at this point in the history
…nd kotlin-compile-testing to 1.4.0
  • Loading branch information
AhmedMourad0 committed May 9, 2021
1 parent 7177ab9 commit 5f62799
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kotlin_version=1.4.32
kotlin_version=1.5.0
android.enableJetifier=true
android.useAndroidX=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Wed May 27 08:55:23 EET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-all.zip
2 changes: 2 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
Expand Down Expand Up @@ -129,6 +130,7 @@ fi
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`

JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
Expand Down
1 change: 1 addition & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ set CMD_LINE_ARGS=%*

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

Expand Down
3 changes: 1 addition & 2 deletions plugins/compiler-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ repositories {

tasks.withType(KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ['-progressive', '-Xjvm-default=all']
}
}
Expand All @@ -31,7 +30,7 @@ dependencies {
api project(":core")

testImplementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlin_version"
testImplementation "com.github.tschuchortdev:kotlin-compile-testing:1.2.10"
testImplementation "com.github.tschuchortdev:kotlin-compile-testing:1.4.0"
testImplementation "junit:junit:4.13"
testImplementation "com.google.truth:truth:1.0.1"
testImplementation project(":annotations")
Expand Down
6 changes: 0 additions & 6 deletions plugins/gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ pluginBundle {
}
}

tasks.withType(KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}

jar {
manifest {
attributes["Specification-Title"] = project.name
Expand Down
4 changes: 2 additions & 2 deletions plugins/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin_version=1.4.32
maven_publish_plugin_version=0.11.1
kotlin_version=1.5.0
maven_publish_plugin_version=0.15.1
kapt.includeCompileClasspath=false
GROUP=dev.ahmedmourad.nocopy
VERSION_NAME=1.3.0
Expand Down
14 changes: 7 additions & 7 deletions plugins/idea-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id "org.jetbrains.intellij" version "0.4.16"
id "org.jetbrains.intellij" version "0.7.3"
id "org.jetbrains.kotlin.jvm"
}

Expand All @@ -18,19 +18,19 @@ tasks.withType(KotlinCompile).all {
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.0"
implementation project(":compiler-plugin")
}

jar {
manifest {
attributes["Specification-Title"] = project.name
attributes["Specification-Version"] = project.version
attributes["Implementation-Title"] = "dev.ahmedmourad.nocopy.nocopy-idea-plugin"
attributes["Implementation-Version"] = project.version
}
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32"
implementation project(":compiler-plugin")
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}

intellij {
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ repositories {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.32"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.0"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0"
}

0 comments on commit 5f62799

Please sign in to comment.