2021-07-13 12:32:20 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2022-08-16 10:54:57 +02:00
|
|
|
id 'org.jetbrains.intellij' version '1.8.0'
|
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.7.10'
|
2021-07-13 12:32:20 +02:00
|
|
|
id 'jacoco'
|
2021-09-25 15:11:02 +02:00
|
|
|
id 'com.github.kt3k.coveralls' version '2.12.0'
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'de.platon42'
|
2022-04-07 10:30:12 +02:00
|
|
|
version = '0.9'
|
2021-07-13 12:32:20 +02:00
|
|
|
sourceCompatibility = "1.8"
|
|
|
|
targetCompatibility = "1.8"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
To run tests in IntelliJ use these VM Options for run configuration
|
|
|
|
-ea -Didea.system.path=build/idea-sandbox/system-test -Didea.config.path=build/idea-sandbox/config-test -Didea.plugins.path=build/idea-sandbox/plugins-test
|
|
|
|
*/
|
|
|
|
|
|
|
|
dependencies {
|
2021-07-30 14:05:37 +02:00
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
|
2022-08-16 10:54:57 +02:00
|
|
|
testImplementation 'org.assertj:assertj-core:3.23.1'
|
|
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
|
|
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
|
2021-07-13 12:32:20 +02:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-test"
|
2021-07-16 20:00:57 +02:00
|
|
|
testImplementation "org.jetbrains.kotlin:kotlin-reflect"
|
2022-08-16 10:54:57 +02:00
|
|
|
testImplementation 'org.junit.platform:junit-platform-launcher:1.9.0'
|
2021-07-13 12:32:20 +02:00
|
|
|
// testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
2021-08-01 10:08:01 +02:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
freeCompilerArgs += "-Xjvm-default=all"
|
|
|
|
}
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
intellij {
|
2022-08-16 10:54:57 +02:00
|
|
|
setVersion("2022.2") // LATEST-EAP-SNAPSHOT
|
2021-07-16 20:00:57 +02:00
|
|
|
setUpdateSinceUntilBuild(false)
|
|
|
|
// setPlugins(["com.intellij.java"])
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
2021-07-27 16:43:46 +02:00
|
|
|
runPluginVerifier {
|
2022-08-16 10:54:57 +02:00
|
|
|
ideVersions = ["IC-203.6682.168", "IC-222.3345.118", // 2020.3 - 2022.2
|
2022-04-07 10:30:12 +02:00
|
|
|
"CL-203.8084.11", // 2020.3
|
|
|
|
"CL-211.7628.27", // 2021.1
|
|
|
|
"CL-212.5712.21", // 2021.2
|
2022-08-16 10:54:57 +02:00
|
|
|
"CL-213.7172.20", // 2021.3.4
|
|
|
|
"CL-221.5080.224", // 2022.1
|
|
|
|
"CL-222.3345.126"] // 2022.2
|
2021-09-04 14:04:12 +02:00
|
|
|
downloadDir = System.getProperty("user.home") + "/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/verifier"
|
2021-07-27 16:43:46 +02:00
|
|
|
}
|
|
|
|
|
2021-07-13 12:32:20 +02:00
|
|
|
patchPluginXml {
|
2021-07-16 20:00:57 +02:00
|
|
|
setChangeNotes("""
|
2022-08-16 10:54:57 +02:00
|
|
|
<h4>V0.9 (16-Aug-22)</h4>
|
2021-09-04 13:11:28 +02:00
|
|
|
<ul>
|
2022-04-07 10:30:12 +02:00
|
|
|
<li>Maintenance. Updated all dependencies to the latest versions.
|
|
|
|
<li>Bugfix: Fixed condition code for asr/lsr/lsl, which is has a different behaviour for V flag than asl.
|
2022-04-26 10:43:07 +02:00
|
|
|
<li>Bugfix: Fixed 'Unknown op size' exception when uppercase sizes were used.
|
2022-08-16 10:54:57 +02:00
|
|
|
<li>Bugfix: Refactoring was broken for newer IDE versions, at least for me, this now works again by unknown magic.
|
2021-08-03 10:57:53 +02:00
|
|
|
</ul>
|
2021-07-13 12:32:20 +02:00
|
|
|
<p>Full changelog available at <a href="https://github.com/chrisly42/mc68000-asm-plugin#changelog">Github project site</a>.</p>
|
2021-07-16 20:00:57 +02:00
|
|
|
""")
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
2021-07-16 20:00:57 +02:00
|
|
|
sourceSets.main.java.srcDirs('src/main/gen', 'src/main/java')
|
2021-07-14 13:07:54 +02:00
|
|
|
|
2021-07-13 12:32:20 +02:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events "passed", "skipped", "failed"
|
|
|
|
}
|
2022-08-16 10:54:57 +02:00
|
|
|
runIde {
|
|
|
|
jvmArgs '--add-exports', 'java.base/jdk.internal.vm=ALL-UNNAMED'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.coveralls {
|
|
|
|
dependsOn jacocoTestReport
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jacoco {
|
2022-08-16 10:54:57 +02:00
|
|
|
toolVersion = '0.8.8'
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
2021-07-16 20:00:57 +02:00
|
|
|
xml.required.set(true)
|
|
|
|
csv.required.set(false)
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
publishPlugin {
|
2021-07-16 20:00:57 +02:00
|
|
|
setToken(intellijPublishToken)
|
2021-07-13 12:32:20 +02:00
|
|
|
}
|