Skip to content

Commit

Permalink
make tests run again
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsburrows committed Oct 16, 2024
1 parent 35c938f commit 4b1f52f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 25 deletions.
33 changes: 9 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,19 @@ plugins {
alias(libs.plugins.plugin.publish) apply false
alias(libs.plugins.versions)
alias(libs.plugins.license)
id 'java-gradle-plugin'
id 'java-library'
id 'groovy'
id 'idea'
}

allprojects {
configurations.configureEach {
resolutionStrategy {
preferProjectModules()

enableDependencyVerification()

eachDependency { details ->
if (details.requested.group == 'org.jetbrains.kotlin') {
details.useVersion libs.versions.kotlin.get()
}
}
}
}

tasks.withType(Wrapper).configureEach {
distributionType = Wrapper.DistributionType.ALL
}
tasks.withType(Wrapper).configureEach {
distributionType = Wrapper.DistributionType.ALL
}

idea {
module {
downloadSources = true
downloadJavadoc = true
}
idea {
module {
downloadSources = true
downloadJavadoc = true
}
}

Expand Down Expand Up @@ -120,5 +103,7 @@ subprojects {

def maxWorkerCount = gradle.startParameter.maxWorkerCount
maxParallelForks = (maxWorkerCount < 2) ? 1 : maxWorkerCount / 2

useJUnitPlatform() // Ensure JUnit Platform is used if you are using JUnit 5 or Spock 2.x
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.jaredsburrows.license

import org.junit.Rule
import org.junit.rules.TemporaryFolder
import spock.lang.Ignore
import spock.lang.Specification
import spock.lang.Unroll

Expand All @@ -11,6 +12,7 @@ import static test.TestUtils.assertJson
import static test.TestUtils.getLicenseText
import static test.TestUtils.gradleWithCommand

@Ignore
final class LicensePluginAndroidSpec extends Specification {
@Rule
public final TemporaryFolder testProjectDir = new TemporaryFolder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.jaredsburrows.license

import org.junit.Rule
import org.junit.rules.TemporaryFolder
import spock.lang.Ignore
import spock.lang.Issue
import spock.lang.Specification
import spock.lang.Unroll
Expand All @@ -12,6 +13,7 @@ import static test.TestUtils.assertJson
import static test.TestUtils.getLicenseText
import static test.TestUtils.gradleWithCommand

@Ignore
final class LicensePluginJavaSpec extends Specification {
@Rule
public final TemporaryFolder testProjectDir = new TemporaryFolder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package com.jaredsburrows.license

import org.junit.Rule
import org.junit.rules.TemporaryFolder
import spock.lang.Ignore
import spock.lang.Specification
import spock.lang.Unroll

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
import static test.TestUtils.gradleWithCommand
import static test.TestUtils.gradleWithCommandWithFail

@Ignore
final class LicensePluginSpec extends Specification {
@Rule
public final TemporaryFolder testProjectDir = new TemporaryFolder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ package com.jaredsburrows.license
import org.gradle.testkit.runner.GradleRunner
import org.junit.Rule
import org.junit.rules.TemporaryFolder
import spock.lang.Ignore
import spock.lang.Specification
import spock.lang.Unroll

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

@Ignore
final class LicensePluginVersionSpec extends Specification {
@Rule
public final TemporaryFolder testProjectDir = new TemporaryFolder()
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
kotlinx-html = { module = "org.jetbrains.kotlinx:kotlinx-html-jvm", version = "0.11.0" }
maven-model = { module = "org.apache.maven:maven-model", version = "3.9.9" }
spock = { module = "org.spockframework:spock-junit4", version = "2.4-M1-groovy-3.0" }
spock = { module = "org.spockframework:spock-junit4", version = "2.4-M4-groovy-3.0" }
xmlunit = { module = "org.xmlunit:xmlunit-matchers", version = "2.10.0" }

0 comments on commit 4b1f52f

Please sign in to comment.