Skip to content

Commit ef25f50

Browse files
committed
License headers and remove Kotlin from build
1 parent 53b65a2 commit ef25f50

40 files changed

+571
-13
lines changed

build.gradle.kts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import nebula.plugin.contacts.ContactsExtension
55
import nebula.plugin.release.NetflixOssStrategies.SNAPSHOT
66
import nebula.plugin.release.git.base.ReleasePluginExtension
77
import nl.javadude.gradle.plugins.license.LicenseExtension
8-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
98
import java.util.*
109

1110
plugins {
1211
`java-library`
1312
`maven-publish`
1413
signing
1514

16-
id("org.jetbrains.kotlin.jvm") version "1.6.21"
1715
id("nebula.maven-resolved-dependencies") version "17.3.2"
1816
id("nebula.release") version "15.3.1"
1917
id("io.github.gradle-nexus.publish-plugin") version "1.0.0"
@@ -140,9 +138,6 @@ dependencies {
140138
compileOnly("org.projectlombok:lombok:latest.release")
141139
annotationProcessor("org.projectlombok:lombok:latest.release")
142140

143-
testImplementation(platform("org.jetbrains.kotlin:kotlin-bom"))
144-
testImplementation("org.jetbrains.kotlin:kotlin-reflect")
145-
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
146141
testImplementation("org.openrewrite:rewrite-java-17:$rewriteVersion")
147142
testImplementation("org.openrewrite:rewrite-test:$rewriteVersion")
148143
testImplementation("org.openrewrite:rewrite-java-tck:$rewriteVersion")
@@ -172,12 +167,6 @@ java {
172167
}
173168
}
174169

175-
tasks.withType(KotlinCompile::class.java).configureEach {
176-
kotlinOptions {
177-
jvmTarget = "1.8"
178-
}
179-
}
180-
181170
tasks.named<Test>("test") {
182171
useJUnitPlatform()
183172
jvmArgs = listOf("-Xmx1g", "-XX:+UnlockDiagnosticVMOptions", "-XX:+ShowHiddenFrames")
@@ -263,4 +252,3 @@ configure<PublishingExtension> {
263252
}
264253
}
265254
}
266-

src/main/java/org/openrewrite/java/testing/junit5/AssertToAssertions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public JavaSourceFile visitJavaSourceFile(JavaSourceFile cu, ExecutionContext ex
7777
maybeRemoveImport("org.junit.Assert.*");
7878
}
7979

80-
maybeRemoveImport("org.junit.Assert");
80+
// maybeRemoveImport("org.junit.Assert.*");
8181

8282
return c;
8383
}

src/test/java/org/openrewrite/java/testing/cleanup/AssertEqualsNullToAssertNullTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

src/test/java/org/openrewrite/java/testing/cleanup/AssertFalseEqualToAssertNotEqualsTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

src/test/java/org/openrewrite/java/testing/cleanup/AssertFalseNegationToAssertTrueTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

src/test/java/org/openrewrite/java/testing/cleanup/AssertFalseNullToAssertNotNullTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

src/test/java/org/openrewrite/java/testing/cleanup/AssertTrueComparisonToAssertEqualsTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

src/test/java/org/openrewrite/java/testing/cleanup/AssertTrueEqualsToAssertEqualsTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

src/test/java/org/openrewrite/java/testing/cleanup/AssertTrueNegationToAssertFalseTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

src/test/java/org/openrewrite/java/testing/cleanup/AssertTrueNullToAssertNullTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021 the original author or authors.
3+
* <p>
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
* <p>
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
* <p>
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.openrewrite.java.testing.cleanup;
217

318
import org.junit.jupiter.api.Test;

0 commit comments

Comments
 (0)