File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
utbot-intellij/src/main/resources/META-INF
utbot-ui-commons/src/main/kotlin/org/utbot/intellij/plugin Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ allprojects {
110110 " --add-opens" , " java.base/jdk.internal.vm.annotation=ALL-UNNAMED"
111111 )
112112
113+ withType<Jar > {
114+ duplicatesStrategy = DuplicatesStrategy .EXCLUDE
115+ }
116+
113117 useJUnitPlatform {
114118 excludeTags = setOf (" slow" , " IntegrationTest" )
115119 }
Original file line number Diff line number Diff line change 3030 id =" org.utbot.intellij.plugin.settings.Configurable"
3131 displayName =" UnitTestBot" />
3232 <!-- suppress PluginXmlValidity -->
33- <projectService serviceImplementation =" org.utbot.intellij.plugin.settings.Settings" preload =" true" />
3433 <registryKey defaultValue =" false" description =" Enable editing Kotlin test files" key =" kotlin.ultra.light.classes.empty.text.range" />
3534 <postStartupActivity implementation =" org.utbot.intellij.plugin.ui.GotItTooltipActivity" />
3635 <projectModelModifier implementation =" org.androidstudio.plugin.util.UtAndroidGradleJavaProjectModelModifierWrapper" order =" first" />
Original file line number Diff line number Diff line change 33package org.utbot.intellij.plugin.settings
44
55import com.intellij.openapi.components.PersistentStateComponent
6+ import com.intellij.openapi.components.Service
67import com.intellij.openapi.components.State
78import com.intellij.openapi.components.Storage
89import com.intellij.openapi.project.Project
@@ -44,6 +45,7 @@ import org.utbot.framework.plugin.api.isSummarizationCompatible
4445 name = " UtBotSettings" ,
4546 storages = [Storage (" utbot-settings.xml" )]
4647)
48+ @Service(Service .Level .PROJECT )
4749class Settings (val project : Project ) : PersistentStateComponent<Settings.State> {
4850 data class State (
4951 var sourceRootHistory : MutableList <String > = mutableListOf(),
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import com.intellij.openapi.application.ApplicationManager
1111import com.intellij.openapi.keymap.KeymapUtil
1212import com.intellij.openapi.module.Module
1313import com.intellij.openapi.project.Project
14- import com.intellij.openapi.startup.StartupActivity
14+ import com.intellij.openapi.startup.ProjectActivity
1515import com.intellij.openapi.wm.WindowManager
1616import com.intellij.ui.GotItTooltip
1717import javax.swing.event.HyperlinkEvent
@@ -187,9 +187,9 @@ object TestReportUrlOpeningListener: NotificationListener.Adapter() {
187187 callbacks[descriptionSuffix]?.map { it() } ? : error(" No such command with #utbot prefix: $descriptionSuffix " )
188188}
189189
190- object GotItTooltipActivity : StartupActivity {
190+ object GotItTooltipActivity : ProjectActivity {
191191 private const val KEY = " UTBot.GotItMessageWasShown"
192- override fun runActivity (project : Project ) {
192+ override suspend fun execute (project : Project ) {
193193 ApplicationManager .getApplication().invokeLater {
194194 val shortcut = ActionManager .getInstance()
195195 .getKeyboardShortcut(" org.utbot.intellij.plugin.ui.actions.GenerateTestsAction" )? : return @invokeLater
You can’t perform that action at this time.
0 commit comments