-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I want compile the project by installed idea ;
so i modify the build.gradle
`buildscript {
ext.kotlin_version = '1.1.0'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "org.jetbrains.intellij" version "0.2.17"
}
apply plugin: 'kotlin-android'
//apply plugin: 'kotlin'
// 详细配置参数请看:https://github.com/JetBrains/gradle-intellij-plugin#configuration
intellij {
localPath '/Applications/IntelliJ IDEA.app'
intellij.updateSinceUntilBuild false
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
jcenter()
}
group 'com.fbsum.plugin'
//version '0.0.2'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
task pubilshToLocalDir(type: Zip) {
doLast {
destinationDir = file('out')
archivesBaseName = "out"
from zipTree("build/distributions/${rootProject.name}-${project.version}.zip")
from fileTree("build/resources/main") {
into "${rootProject.name}"
}
}
}
pubilshToLocalDir.dependsOn buildPlugin
add a pubilshToLocalDir task because i want install form disk; but when i rungralde tasks`
Configuring > 1/1 projects > 1.26 MB/450.52 MB downloaded^C
bogon:HelloWorldPlugin user$
the task download idea zip file for build.
it look like lintellij.localPath not work ,but in "External Libraries" i see the "Gradle: com.jetbrains:ideaLocal:ic-172.3757.52"