add note about 1.7 in doc

This commit is contained in:
parrt 2018-11-08 12:27:48 -08:00
parent 7591bf1705
commit de87686674
1 changed files with 8 additions and 2 deletions

View File

@ -150,13 +150,13 @@ Uploaded: https://oss.sonatype.org/content/repositories/snapshots/org/antlr/antl
The maven deploy lifecycle phased deploys the artifacts and the poms for the ANTLR project to the [sonatype remote staging server](https://oss.sonatype.org/content/repositories/snapshots/). The maven deploy lifecycle phased deploys the artifacts and the poms for the ANTLR project to the [sonatype remote staging server](https://oss.sonatype.org/content/repositories/snapshots/).
```bash ```bash
mvn deploy -DskipTests mvn -Dmaven.compiler.executable=`/usr/libexec/java_home -v 1.7` deploy -DskipTests
``` ```
With JDK 1.7 (not 6 or 8), do this: With JDK 1.7 (not 6 or 8), do this:
```bash ```bash
mvn release:prepare -Darguments="-DskipTests" mvn -Dmaven.compiler.executable=`/usr/libexec/java_home -v 1.7` release:prepare -Darguments="-DskipTests"
``` ```
Hm...per https://github.com/keybase/keybase-issues/issues/1712 we need this to make gpg work: Hm...per https://github.com/keybase/keybase-issues/issues/1712 we need this to make gpg work:
@ -175,6 +175,12 @@ alias jar='/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/bin/j
export JAVA_HOME=`/usr/libexec/java_home -v 1.7` export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
``` ```
But I think that this option on mvn works:
```
-Dmaven.compiler.executable=`/usr/libexec/java_home -v 1.7`
```
You should see 0x33 in generated .class files after 0xCAFEBABE; see [Java SE 7 = 51 (0x33 hex)](https://en.wikipedia.org/wiki/Java_class_file): You should see 0x33 in generated .class files after 0xCAFEBABE; see [Java SE 7 = 51 (0x33 hex)](https://en.wikipedia.org/wiki/Java_class_file):
```bash ```bash