Skip to content

Commit

Permalink
Rename JPMS module for multiplatform annotations to "multiplatform_an…
Browse files Browse the repository at this point in the history
…notations"
  • Loading branch information
serjsysoev committed May 6, 2024
1 parent 80bb6c2 commit 3cfda95
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 5 deletions.
4 changes: 2 additions & 2 deletions java-annotations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ project.archivesBaseName = 'annotations'

task mainJar(type: Jar) {
into ("META-INF/versions/9", {
from (project(':module-info').sourceSets.main.output, {
from (project(':java-module-info').sourceSets.main.output, {
// Skip extra files from common sources compiled with Java 9 target
include("module-info.class")
})
Expand All @@ -31,7 +31,7 @@ task mainJar(type: Jar) {

task sourceJar(type: Jar) {
into ("META-INF/versions/9", {
from project(':module-info').sourceSets.main.java
from project(':java-module-info').sourceSets.main.java
})
duplicatesStrategy = DuplicatesStrategy.FAIL
from sourceSets.main.java
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions multiplatform-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ kotlin {

val jvmJar by tasks.getting(Jar::class) {
into ("META-INF/versions/9") {
from (project(":module-info").sourceSets["main"].output) {
from (project(":multiplatform-module-info").sourceSets["main"].output) {
include("module-info.class")
}
}
Expand All @@ -87,7 +87,7 @@ val jvmJar by tasks.getting(Jar::class) {

val jvmSourcesJar by tasks.getting(Jar::class) {
into ("META-INF/versions/9") {
from (project(":module-info").sourceSets["main"].output) {
from (project(":multiplatform-module-info").sourceSets["main"].output) {
include("module-info.class")
}
}
Expand Down
31 changes: 31 additions & 0 deletions multiplatform-module-info/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright 2000-2021 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

sourceCompatibility = 1.9

dependencies {
implementation project(':java-annotations')
}

compileJava {
// Without common sources, compiler complains that exported packages don't exist
source = [sourceSets.main.java, project(':java-annotations').sourceSets.main.java]
}

task mainJar(type: Jar) {
}

javadoc.enabled = false
20 changes: 20 additions & 0 deletions multiplatform-module-info/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2000-2020 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module org.jetbrains.multiplatform_annotations {
requires static java.desktop;
exports org.intellij.lang.annotations;
exports org.jetbrains.annotations;
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

rootProject.name = 'annotations-parent'

include 'java-annotations', 'module-info', 'multiplatform-annotations'
include 'java-annotations', 'java-module-info', 'multiplatform-annotations', 'multiplatform-module-info'

0 comments on commit 3cfda95

Please sign in to comment.