Skip to content

Commit

Permalink
Support for modern API in IdeaModule
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalcolea committed Oct 7, 2022
1 parent f616b8f commit ff0a9a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 33 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


plugins {
id 'nebula.plugin-plugin' version '17.0.0'
id 'nebula.plugin-plugin' version '17.1.0'
id 'java-library'
}

Expand All @@ -34,7 +34,7 @@ dependencies {
implementation 'com.netflix.nebula:nebula-publishing-plugin:18.3.0'
implementation 'com.netflix.nebula:gradle-contacts-plugin:6.0.0'
implementation 'com.netflix.nebula:gradle-dependency-lock-plugin:12.4.1'
implementation 'com.netflix.nebula:gradle-info-plugin:11.3.3'
implementation 'com.netflix.nebula:gradle-info-plugin:11.4.1'
}

// We use hard coded versions here due to bundling compatibility, and we don't want to accidentally generate a lock file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.gradle.api.tasks.SourceSet
import org.gradle.plugins.ide.idea.IdeaPlugin
import org.gradle.plugins.ide.idea.model.IdeaModel
import org.gradle.plugins.ide.idea.model.IdeaModule
import org.gradle.util.GradleVersion

class IdeaPluginConfigurer implements IdePluginConfigurer {
private final Project project
Expand Down Expand Up @@ -46,7 +47,7 @@ class IdeaPluginConfigurer implements IdePluginConfigurer {
private void configurePluginForTestSourceSet(SourceSet testSourceSet) {
withIdeaModule { IdeaModule module ->
testSourceSet.allSource.srcDirs.each { srcDir ->
module.testSourceDirs += srcDir
module.testSources.from(srcDir)
}

module.scopes.TEST.plus += [getConfiguration(testSourceSet.compileClasspathConfigurationName), getConfiguration(testSourceSet.runtimeClasspathConfigurationName)]
Expand Down

This file was deleted.

0 comments on commit ff0a9a8

Please sign in to comment.