File tree Expand file tree Collapse file tree
src/main/kotlin/net/kautler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * Copyright 2019-2025 Björn Kautler
2+ * Copyright 2019-2026 Björn Kautler
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -35,6 +35,7 @@ dependencies {
3535 implementation(plugin(libs.plugins.jvm.dependency.conflict.resolution))
3636 implementation(plugin(libs.plugins.versions))
3737 implementation(plugin(libs.plugins.grgit))
38+ implementation(plugin(libs.plugins.idea.ext))
3839 implementation(plugin(libs.plugins.spotbugs))
3940 implementation(plugin(libs.plugins.bndBuilder))
4041 implementation(plugin(libs.plugins.nexus.publish))
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2023 Björn Kautler
2+ * Copyright 2023-2026 Björn Kautler
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1616
1717package net.kautler
1818
19+ import org.jetbrains.gradle.ext.ActionDelegationConfig.TestRunner.GRADLE
20+ import org.jetbrains.gradle.ext.EncodingConfiguration.BomPolicy.WITH_NO_BOM
21+ import org.jetbrains.gradle.ext.delegateActions
22+ import org.jetbrains.gradle.ext.encodings
23+ import org.jetbrains.gradle.ext.settings
24+ import org.jetbrains.gradle.ext.taskTriggers
25+ import kotlin.text.Charsets.ISO_8859_1
26+ import kotlin.text.Charsets.UTF_8
27+
28+ plugins {
29+ id(" org.jetbrains.gradle.plugin.idea-ext" )
30+ }
31+
1932val generate by tasks.registering
33+
34+ idea {
35+ project {
36+ settings {
37+ encodings {
38+ encoding = UTF_8 .name()
39+ bomPolicy = WITH_NO_BOM
40+ properties {
41+ encoding = ISO_8859_1 .name()
42+ transparentNativeToAsciiConversion = true
43+ }
44+ }
45+ delegateActions {
46+ delegateBuildRunToGradle = true
47+ testRunner = GRADLE
48+ }
49+ taskTriggers {
50+ afterSync(generate)
51+ }
52+ }
53+ }
54+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ build-gradle-plugin-jvm-dependency-conflict-resolution = "2.5"
3030build-gradle-plugin-nexus-publish = " 2.0.0"
3131build-gradle-plugin-pitest = " 1.19.0"
3232build-gradle-plugin-release = " 3.1.0"
33+ build-gradle-plugin-idea-ext = " 1.4.1"
3334build-gradle-plugin-spotbugs = " 6.4.8"
3435build-gradle-plugin-versions = " 0.53.0"
3536build-gradle-plugin-refresh-versions = " 0.60.6"
@@ -131,6 +132,7 @@ convention-publishing = { id = "net.kautler.publishing" }
131132bndBuilder = { id = " biz.aQute.bnd.builder" , version.ref = " build-gradle-plugin-bndBuilder" }
132133github = { id = " net.wooga.github" , version.ref = " build-gradle-plugin-github" }
133134grgit = { id = " org.ajoberstar.grgit.service" , version.ref = " build-grgit" }
135+ idea-ext = { id = " org.jetbrains.gradle.plugin.idea-ext" , version.ref = " build-gradle-plugin-idea-ext" }
134136jvm-dependency-conflict-resolution = { id = " org.gradlex.jvm-dependency-conflict-resolution" , version.ref = " build-gradle-plugin-jvm-dependency-conflict-resolution" }
135137nexus-publish = { id = " io.github.gradle-nexus.publish-plugin" , version.ref = " build-gradle-plugin-nexus-publish" }
136138pitest = { id = " info.solidsoft.pitest" , version.ref = " build-gradle-plugin-pitest" }
You can’t perform that action at this time.
0 commit comments