Skip to content

Commit c1dfeca

Browse files
authored
Fix usage of sourceCompatibility and targetCompatibility (#48)
- Fix the usage of sourceCompatibility and targetCompatibility - Fix the command reference to upload new artifacts to Maven Central
1 parent 727d510 commit c1dfeca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugin/build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ plugins {
1313
// > ./gradlew publishPlugins
1414
//
1515
// To upload new plugin artifact to Maven Central Repository:
16-
// > ./gradlew publishPluginMavenPublicationToMavenCentralRepository --no-daemon --no-parallel
16+
// > ./gradlew publish --no-daemon --no-parallel
1717
//
1818
// To test the plugin:
1919
// > ./gradlew clean test
2020

21-
sourceCompatibility = JavaVersion.VERSION_1_8
22-
targetCompatibility = JavaVersion.VERSION_1_8
21+
java {
22+
sourceCompatibility = JavaVersion.VERSION_1_8
23+
targetCompatibility = JavaVersion.VERSION_1_8
24+
}
2325

2426
plugins.withId("com.vanniktech.maven.publish") {
2527
mavenPublish {

0 commit comments

Comments
 (0)