Skip to content

Instantly share code, notes, and snippets.

@Nilzor
Created June 19, 2021 06:20
Show Gist options
  • Save Nilzor/900e0d7f5605390f686f92f26b2fe30c to your computer and use it in GitHub Desktop.
Save Nilzor/900e0d7f5605390f686f92f26b2fe30c to your computer and use it in GitHub Desktop.
Temp build.gradle matrix plugin
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.5.10'
id 'org.jetbrains.intellij' version '1.0'
//id 'org.jetbrains.kotlin.jvm' version '1.3.72'
//id 'org.jetbrains.intellij' version '0.4.21'
}
group 'com.nilsenlabs.flavormatrix'
version '0.5.6'
intellij {
// version = '202.7660.26' // IntelliJ IDEA version used in Android Studio 4.2.1
//type = 'IC' // Community edition
plugins = ['android']
localPath = 'C:/Programfiler/android/Android Studio'
//updateSinceUntilBuild false
}
patchPluginXml {
changeNotes = """
<ul>
<li>0.5.6 Improved release notes</li>
</ul>
"""
}
/*
Android Studio 4.2.1
Build #AI-202.7660.26.42.7351085, built on May 10, 2021
*/
runIde {
// Absolute path to installed target 4.1 Android Studio to use as IDE Development Instance
//ideDirectory 'c:/Program Files/Android/Android Studio 4.1 RC3'
//ideDirectory 'C:/Program Files/Android/Android Studio'
// new
// def dir = org.gradle.api.file.Directory.dir('C:/Programfiler/android/Android Studio')
//ideDir.set(dir) // Work computer)
def dir = project.getLayout().getProjectDirectory().dir('C:/Programfiler/android/Android Studio')
ideDir.set(dir)
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
testCompile "org.mockito:mockito-core:2.+"
}
//publishPlugin {
// token project.properties['jetbrains.publish.token']
//}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment