Use the new central portal releases and snapshots locations
This commit is contained in:
parent
705d89d7cd
commit
042479e989
5 changed files with 13 additions and 11 deletions
4
.idea/libraries/bld.xml
generated
4
.idea/libraries/bld.xml
generated
|
@ -2,12 +2,12 @@
|
||||||
<library name="bld">
|
<library name="bld">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-2.2.1.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-2.2.2-SNAPSHOT.jar!/" />
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-2.2.1-sources.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-2.2.2-SNAPSHOT-sources.jar!/" />
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<excluded>
|
<excluded>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[](https://rife2.com/bld)
|
[](https://rife2.com/bld)
|
||||||
[](https://github.com/ethauvin/bitly-shorten/releases/latest)
|
[](https://github.com/ethauvin/bitly-shorten/releases/latest)
|
||||||
[](https://central.sonatype.com/artifact/net.thauvin.erik/bitly-shorten)
|
[](https://central.sonatype.com/artifact/net.thauvin.erik/bitly-shorten)
|
||||||
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/bitly-shorten/)
|
[](https://github.com/ethauvin/bitly-shorten/packages/2260734/versions)
|
||||||
|
|
||||||
|
|
||||||
[](https://sonarcloud.io/dashboard?id=ethauvin_bitly-shorten)
|
[](https://sonarcloud.io/dashboard?id=ethauvin_bitly-shorten)
|
||||||
|
@ -60,7 +60,7 @@ BITLY_ACCESS_TOKEN=abc123def456ghi789jkl0
|
||||||
To use with [bld](https://rife2.com/bld), include the following dependency in your [build](https://github.com/ethauvin/bitly-shorten/blob/master/examples/bld/src/bld/java/com/example/ExampleBuild.java) file:
|
To use with [bld](https://rife2.com/bld), include the following dependency in your [build](https://github.com/ethauvin/bitly-shorten/blob/master/examples/bld/src/bld/java/com/example/ExampleBuild.java) file:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
|
repositories = List.of(MAVEN_CENTRAL, CENTRAL_SNAPSHOTS);
|
||||||
|
|
||||||
scope(compile)
|
scope(compile)
|
||||||
.include(dependency("net.thauvin.erik:bitly-shorten:2.0.0"));
|
.include(dependency("net.thauvin.erik:bitly-shorten:2.0.0"));
|
||||||
|
@ -74,8 +74,11 @@ To use with [Gradle](https://gradle.org/), include the following dependency in y
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
repositories {
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = 'Central Portal Snapshots'
|
||||||
|
url = 'https://central.sonatype.com/repository/maven-snapshots/'
|
||||||
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } // only needed for SNAPSHOT
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
Binary file not shown.
|
@ -6,6 +6,6 @@ bld.extension-dokka=com.uwyn.rife2:bld-dokka:1.0.4-SNAPSHOT
|
||||||
bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.5
|
bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.5
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.11-SNAPSHOT
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.11-SNAPSHOT
|
||||||
bld.extension-kotlin=com.uwyn.rife2:bld-kotlin:1.1.0
|
bld.extension-kotlin=com.uwyn.rife2:bld-kotlin:1.1.0
|
||||||
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=CENTRAL_SNAPSHOTS,MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
bld.version=2.2.1
|
bld.version=2.2.2-SNAPSHOT
|
||||||
|
|
|
@ -93,10 +93,9 @@ public class BitlyShortenBuild extends Project {
|
||||||
.include(dependency("com.willowtreeapps.assertk", "assertk-jvm", version(0, 28, 1)));
|
.include(dependency("com.willowtreeapps.assertk", "assertk-jvm", version(0, 28, 1)));
|
||||||
|
|
||||||
publishOperation()
|
publishOperation()
|
||||||
.repository(version.isSnapshot() ? repository(SONATYPE_SNAPSHOTS_LEGACY.location())
|
.repository(version.isSnapshot() ? repository(CENTRAL_SNAPSHOTS.location())
|
||||||
.withCredentials(property("sonatype.user"), property("sonatype.password"))
|
.withCredentials(property("central.user"), property("central.password"))
|
||||||
: repository(SONATYPE_RELEASES_LEGACY.location())
|
: repository(CENTRAL_RELEASES.location()))
|
||||||
.withCredentials(property("sonatype.user"), property("sonatype.password")))
|
|
||||||
.repository(repository("github"))
|
.repository(repository("github"))
|
||||||
.info()
|
.info()
|
||||||
.groupId(pkg)
|
.groupId(pkg)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue