Java: Formatting tweaks to READMEs
They looked funny when rendered on github.
This commit is contained in:
parent
2a4811054a
commit
0ca139b5e2
@ -34,26 +34,26 @@ That's all. As an example, to create a Maven project for the
|
|||||||
1. Create a `pom.xml`:
|
1. Create a `pom.xml`:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<project>
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.myorg</groupId>
|
<groupId>org.myorg</groupId>
|
||||||
<artifactId>label-image</artifactId>
|
<artifactId>label-image</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<properties>
|
<properties>
|
||||||
<exec.mainClass>org.tensorflow.examples.LabelImage</exec.mainClass>
|
<exec.mainClass>org.tensorflow.examples.LabelImage</exec.mainClass>
|
||||||
<!-- The LabelImage example code requires at least JDK 1.7. -->
|
<!-- The LabelImage example code requires at least JDK 1.7. -->
|
||||||
<!-- The maven compiler plugin defaults to a lower version -->
|
<!-- The maven compiler plugin defaults to a lower version -->
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.tensorflow</groupId>
|
<groupId>org.tensorflow</groupId>
|
||||||
<artifactId>tensorflow</artifactId>
|
<artifactId>tensorflow</artifactId>
|
||||||
<version>1.1.0-rc0-windows-fix</version>
|
<version>1.1.0-rc0-windows-fix</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Download the [example source](https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/java/src/main/java/org/tensorflow/examples/LabelImage.java)
|
2. Download the [example source](https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/java/src/main/java/org/tensorflow/examples/LabelImage.java)
|
||||||
|
@ -68,28 +68,28 @@ conducted in a [Docker](https://www.docker.com) container.
|
|||||||
SONATYPE_PASSWORD="your_sonatype.org_password_here"
|
SONATYPE_PASSWORD="your_sonatype.org_password_here"
|
||||||
GPG_PASSPHRASE="your_gpg_passphrase_here"
|
GPG_PASSPHRASE="your_gpg_passphrase_here"
|
||||||
cat >/tmp/settings.xml <<EOF
|
cat >/tmp/settings.xml <<EOF
|
||||||
<settings>
|
<settings>
|
||||||
<servers>
|
<servers>
|
||||||
<server>
|
<server>
|
||||||
<id>ossrh</id>
|
<id>ossrh</id>
|
||||||
<username>${SONATYPE_USERNAME}</username>
|
<username>${SONATYPE_USERNAME}</username>
|
||||||
<password>${SONATYPE_PASSWORD}</password>
|
<password>${SONATYPE_PASSWORD}</password>
|
||||||
</server>
|
</server>
|
||||||
</servers>
|
</servers>
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>ossrh</id>
|
<id>ossrh</id>
|
||||||
<activation>
|
<activation>
|
||||||
<activeByDefault>true</activeByDefault>
|
<activeByDefault>true</activeByDefault>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
<gpg.executable>gpg2</gpg.executable>
|
<gpg.executable>gpg2</gpg.executable>
|
||||||
<gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
|
<gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</settings>
|
</settings>
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Run the `release.sh` script.
|
2. Run the `release.sh` script.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user