11buildscript {
2- ext. kotlin_version = ' 1.3.72 '
2+ ext. kotlin_version = ' 1.6.10 '
33 repositories {
44 // maven { url 'http://192.168.2.39:8908/repository/maven-public/' }
55 maven { url ' https://maven.aliyun.com/repository/public' }
66 google()
77 mavenCentral()
88 }
9- dependencies {
10- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11- }
9+ // dependencies {
10+ // classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11+ // }
1212}
1313
1414plugins {
15- id ' org.jetbrains.intellij' version ' 0.4.2'
15+ id ' org.jetbrains.intellij' version ' 1.5.3'
16+ // id 'java'
17+ id ' org.jetbrains.kotlin.jvm' version " $kotlin_version "
1618}
1719
18- version ' 1.4.5 '
20+ version ' 1.4.6 '
1921group ' com.longforus'
2022
21- apply plugin : ' java'
22- apply plugin : ' kotlin'
23- apply plugin : ' kotlin-kapt'
24- apply plugin : ' org.jetbrains.intellij'
23+ // apply plugin: 'java'
24+ // apply plugin: 'kotlin'
25+ // apply plugin: 'kotlin-kapt'
26+ // apply plugin: 'org.jetbrains.intellij'
2527
26- sourceCompatibility = 1.8
27- targetCompatibility = 1.8
28+ sourceCompatibility = 11
29+ targetCompatibility = 11
2830
2931// sourceSets {
3032// main {
@@ -42,57 +44,53 @@ repositories {
4244}
4345
4446compileKotlin {
45- kotlinOptions. jvmTarget = " 1.8 "
47+ kotlinOptions. jvmTarget = " 11 "
4648}
4749compileTestKotlin {
48- kotlinOptions. jvmTarget = " 1.8 "
50+ kotlinOptions. jvmTarget = " 11 "
4951}
5052
5153if (! hasProperty(' StudioCompilePath' )) {
5254 throw new GradleException (" No StudioCompilePath value was set, please create gradle.properties file" )
5355}
5456
5557intellij {
56- version ' 2019.3'
57- plugins ' java'
58- plugins ' org.jetbrains.kotlin:1.3.72-release-IJ2019.3-1' // here
59- // plugins 'org.jetbrains.kotlin:1.3.21-release-IJ2018.2-1' //here
60- // version '2018.2'
61- // plugins 'org.jetbrains.kotlin:1.2.61-release-IJ2018.2-1' //here
62- // version '2018.1'
63- // plugins 'org.jetbrains.kotlin:1.2.60-release-IJ2018.1-1' //here
64- // version '2017.3'
65- // plugins 'org.jetbrains.kotlin:1.2.61-release-IJ2017.3-1' //here
66- intellij. updateSinceUntilBuild false
67- // intellij.localPath = project.hasProperty("StudioRunPath") ? StudioRunPath : StudioCompilePath
58+ pluginName= ' MvpAutoCodePlus'
59+ // version '2021.1.3'
60+ // type 'IC'
61+ plugins= [' java' ,' android' ]
62+ // plugins 'org.jetbrains.kotlin:212-1.6.20-release-275-AS5457.46' //here
63+ updateSinceUntilBuild= false
64+ downloadSources= true
65+ localPath = project. hasProperty(" StudioRunPath" ) ? StudioRunPath : StudioCompilePath
6866}
6967
7068dependencies {
71- compile " org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version "
72- compileOnly fileTree(dir : " $StudioCompilePath /plugins/android/lib" , include : [' *.jar' ])
73- compileOnly fileTree(dir : " $StudioCompilePath /plugins/java/lib" , include : [' *.jar' ])
74- compileOnly fileTree(dir : " $StudioCompilePath /lib" , include : [' *.jar' ])
75-
76- testCompile fileTree(dir : " $StudioCompilePath /plugins/android/lib" , include : [' *.jar' ])
77- testCompile fileTree(dir : " $StudioCompilePath /plugins/java/lib" , include : [' *.jar' ])
78- testCompile fileTree(dir : " $StudioCompilePath /lib" , include : [' *.jar' ])
79- // compile "com.jetbrains.intellij.java:java-psi:192.7142.36"
69+ // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
70+ // compileOnly fileTree(dir: "$StudioCompilePath/plugins/android/lib", include: ['*.jar'])
71+ // compileOnly fileTree(dir: "$StudioCompilePath/plugins/java/lib", include: ['*.jar'])
72+ // compileOnly fileTree(dir: "$StudioCompilePath/lib", include: ['*.jar'])
73+ //
74+ // testImplementation fileTree(dir: "$StudioCompilePath/plugins/android/lib", include: ['*.jar'])
75+ // testImplementation fileTree(dir: "$StudioCompilePath/plugins/java/lib", include: ['*.jar'])
76+ // testImplementation fileTree(dir: "$StudioCompilePath/lib", include: ['*.jar'])
77+ // implementation "com.jetbrains.intellij.java:java-psi:192.7142.36"
8078// compileOnly "com.android.tools.build:gradle:3.6.1"
81- compileOnly " com.android.tools.build:gradle:4.0.1 "
79+ // compileOnly "com.android.tools.build:gradle:4.2.2 "
8280// compileOnly "com.jetbrains.intellij.java:java:192.7142.36"
83- // compile 'com.squareup:javapoet:1.11.0'
84- // testCompile group: 'junit', name: 'junit', version: '4.12'
81+ // Implementation 'com.squareup:javapoet:1.11.0'
82+ // testImplementation group: 'junit', name: 'junit', version: '4.12'
8583}
8684
8785patchPluginXml {
88- changeNotes """ <h3>Adapter Android studio 4.1,fix create layout file error. </h3>
86+ changeNotes= """ <h3>Adapter Android studio 2021.3.1 P1 </h3>
8987<br/>
9088<a href="https://github.com/longforus/MvpAutoCodePlus/blob/master/CHANGELOG.md"><b>Full Changelog History</b></a>"""
9189}
9290
93- publishPlugin {
94- token publishToken
95- }
91+ // publishPlugin {
92+ // token publishToken
93+ // }
9694
9795// 指定编译的编码
9896tasks. withType(JavaCompile ) {
0 commit comments