Skip to content

Commit

Permalink
chore: Add maven equivalent configs (googleapis#1861)
Browse files Browse the repository at this point in the history
* chore: Add maven settings.xml function

* chore: Add compiler settings
  • Loading branch information
lqiu96 authored Nov 10, 2022
1 parent 6a8150a commit b958fbd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .kokoro/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,26 @@ signing.gnupg.passphrase=${GPG_PASSPHRASE}
ossrhUsername=${SONATYPE_USERNAME}
ossrhPassword=${SONATYPE_PASSWORD}" > $1
}

create_settings_xml_file() {
echo "
<settings>
<servers>
<server>
<id>ossrh</id>
<username>${SONATYPE_USERNAME}</username>
<password>${SONATYPE_PASSWORD}</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>${SONATYPE_USERNAME}</username>
<password>${SONATYPE_PASSWORD}</password>
</server>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${SONATYPE_USERNAME}</username>
<password>${SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>" > $1
}
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@
</path>
</annotationProcessorPaths>
<release>8</release>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:deprecation</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit b958fbd

Please sign in to comment.