-
Notifications
You must be signed in to change notification settings - Fork 268
Add Java Platform Module System (JPMS) support #1601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
c04ad9e
ad1f8d1
2659b4f
b78c9a0
8aead27
5760bfd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,6 +98,23 @@ | |
| </path> | ||
| </annotationProcessorPaths> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <id>compile-java9</id> | ||
| <goals> | ||
| <goal>compile</goal> | ||
| </goals> | ||
| <configuration> | ||
| <release>9</release> | ||
| <compileSourceRoots> | ||
| <compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot> | ||
| </compileSourceRoots> | ||
| <multiReleaseOutput>true</multiReleaseOutput> | ||
| <useIncrementalCompilation>false</useIncrementalCompilation> | ||
| <moduleVersion>1.0</moduleVersion> | ||
cowwoc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <artifactId>maven-source-plugin</artifactId> | ||
|
|
@@ -110,6 +127,13 @@ | |
| </plugin> | ||
| <plugin> | ||
| <artifactId>maven-jar-plugin</artifactId> | ||
| <configuration> | ||
| <archive> | ||
| <manifestEntries> | ||
| <Multi-Release>true</Multi-Release> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the current configuration, I don't think we actually end up producing a multi-release jar, so I think we can get by without this. |
||
| </manifestEntries> | ||
| </archive> | ||
| </configuration> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Error #2 from That should just be a matter of loosening the assertion to accept either style. Of course, another option for this (and for Error #1) is to see if we can keep |
||
| <executions> | ||
| <execution> | ||
| <id>attach-gwt-sources</id> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* | ||
| * Copyright (c) 2024 Google, Inc. | ||
| * | ||
| * 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 | ||
| * | ||
| * http://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 com.google.truth { | ||
| requires com.google.common; | ||
| requires junit; | ||
|
|
||
| requires static org.jspecify; | ||
| requires static com.google.errorprone.annotations; | ||
| requires static org.objectweb.asm; | ||
| requires static auto.value.annotations; | ||
|
|
||
| exports com.google.common.truth; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,6 +96,31 @@ | |
| </path> | ||
| </annotationProcessorPaths> | ||
| </configuration> | ||
| <executions> | ||
cowwoc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <execution> | ||
| <id>compile-java9</id> | ||
| <goals> | ||
| <goal>compile</goal> | ||
| </goals> | ||
| <configuration> | ||
| <release>9</release> | ||
| <compileSourceRoots> | ||
| <compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot> | ||
| </compileSourceRoots> | ||
| <multiReleaseOutput>true</multiReleaseOutput> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <artifactId>maven-jar-plugin</artifactId> | ||
| <configuration> | ||
| <archive> | ||
| <manifestEntries> | ||
| <Multi-Release>true</Multi-Release> | ||
| </manifestEntries> | ||
| </archive> | ||
| </configuration> | ||
| </plugin> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Error from I haven't thought about that one, but it might be a matter of moving more stuff or updating more references. I'd encourage you not to worry about it until we discuss the proto/liteproto business more, but I'm noting it here as a record of potential remaining work. |
||
| </plugins> | ||
| </build> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| /* | ||
| * Copyright (c) 2024 Google, Inc. | ||
| * | ||
| * 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 | ||
| * | ||
| * http://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 com.google.truth.extensions.liteproto { | ||
| requires com.google.truth; | ||
| requires com.google.common; | ||
|
|
||
| requires static org.jspecify; | ||
| requires static com.google.errorprone.annotations; | ||
| requires static com.google.protobuf.lite; | ||
|
|
||
| exports com.google.common.truth.extensions.proto; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /* | ||
| * Copyright (c) 2024 Google, Inc. | ||
| * | ||
| * 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 | ||
| * | ||
| * http://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 com.google.truth.extensions.proto { | ||
| requires com.google.truth; | ||
| requires com.google.truth.extensions.liteproto; | ||
| requires com.google.common; | ||
| requires com.google.protobuf; | ||
|
|
||
| requires static org.jspecify; | ||
| requires static com.google.errorprone.annotations; | ||
|
|
||
| exports com.google.common.truth.extensions.proto; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /* | ||
| * Copyright (c) 2024 Google, Inc. | ||
| * | ||
| * 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 | ||
| * | ||
| * http://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 com.google.truth.extensions.re2j { | ||
| requires com.google.truth; | ||
| requires com.google.re2j; | ||
|
|
||
| exports com.google.common.truth.extensions.re2j; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.