Skip to content

Commit

Permalink
Use M4
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskleeh committed Jul 20, 2021
1 parent 08ed079 commit f7cbbcd
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 15 deletions.
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ subprojects { Project subproject ->
if (subproject.name != 'test-bom') {
apply plugin: "io.micronaut.build.internal.common"

repositories {
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
}

micronautBuild {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
projectVersion=3.0.0-SNAPSHOT
micronautDocsVersion=2.0.0.RC1
micronautVersion=3.0.0-M3
micronautVersion=3.0.0-M4

spockVersion=2.0-groovy-3.0
groovyVersion=3.0.8
Expand Down
3 changes: 1 addition & 2 deletions test-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ dependencies {
)

api "io.micronaut:micronaut-inject:$micronautVersion"
compileOnly "jakarta.inject:jakarta.inject-api:2.0.0"

testCompileOnly "jakarta.inject:jakarta.inject-api:2.0.0"
implementation "io.micronaut:micronaut-runtime:$micronautVersion"
}

jar {
exclude "io/micronaut/test/extensions/spock/*"
exclude "io/micronaut/test/extensions/junit5/*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
public class TestActiveCondition implements Condition {

public static final String ACTIVE_MOCKS = "micronaut.test.spock.active.mocks";
/**
* Deprecated please use {@link #ACTIVE_SPEC_CLAZZ} instead.
*/
@Deprecated
public static final String ACTIVE_SPEC_NAME = "micronaut.test.active.spec";

public static final String ACTIVE_SPEC_CLAZZ = "micronaut.test.active.spec.clazz";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected void beforeClass(C context, Class<?> testClass, @Nullable MicronautTes
if (TestPropertyProvider.class.isAssignableFrom(testClass)) {
resolveTestProperties(context, testAnnotationValue, testProperties);
}
testProperties.put(TestActiveCondition.ACTIVE_SPEC_NAME, aPackage.getName() + "." + testClass.getSimpleName());

testProperties.put(TestActiveCondition.ACTIVE_SPEC_CLAZZ, testClass);
testProperties.put(TEST_ROLLBACK, String.valueOf(testAnnotationValue.rollback()));
testProperties.put(TEST_TRANSACTIONAL, String.valueOf(testAnnotationValue.transactional()));
Expand Down
2 changes: 0 additions & 2 deletions test-junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ dependencies {
api(
"org.junit.jupiter:junit-jupiter-api:$junitVersion"
)
compileOnly "jakarta.inject:jakarta.inject-api:2.0.0"

testCompileOnly "jakarta.inject:jakarta.inject-api:2.0.0"
testCompileOnly "io.micronaut:micronaut-inject:$micronautVersion"
testRuntimeOnly(
"org.junit.jupiter:junit-jupiter-engine:$junitVersion"
Expand Down

0 comments on commit f7cbbcd

Please sign in to comment.