NevamTest

Test app for Nevam.

License

License

GroupId

GroupId

me.saket
ArtifactId

ArtifactId

nevamtest
Last Version

Last Version

1.3.4
Release Date

Release Date

Type

Type

aar
Description

Description

NevamTest
Test app for Nevam.
Project URL

Project URL

https://github.com/saket/nevam
Source Code Management

Source Code Management

https://github.com/saket/nevam

Download nevamtest

How to add to project

<!-- https://jarcasting.com/artifacts/me.saket/nevamtest/ -->
<dependency>
    <groupId>me.saket</groupId>
    <artifactId>nevamtest</artifactId>
    <version>1.3.4</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/me.saket/nevamtest/
implementation 'me.saket:nevamtest:1.3.4'
// https://jarcasting.com/artifacts/me.saket/nevamtest/
implementation ("me.saket:nevamtest:1.3.4")
'me.saket:nevamtest:aar:1.3.4'
<dependency org="me.saket" name="nevamtest" rev="1.3.4">
  <artifact name="nevamtest" type="aar" />
</dependency>
@Grapes(
@Grab(group='me.saket', module='nevamtest', version='1.3.4')
)
libraryDependencies += "me.saket" % "nevamtest" % "1.3.4"
[me.saket/nevamtest "1.3.4"]

Dependencies

compile (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.50

Project Modules

There are no modules declared in this project.

startship

demo

$ brew install saket/repo/startship
$
$ cd ~/path/to/your/library/project
$ startship release && say "released"

startship makes the process of releasing JVM libraries a bit easier by automating usage of Sonatype Nexus so that you don't have to constantly refresh your browser after every operation to check if has gone through yet.

startship will read your library's maven coordinates from gradle.properties, find your staged repository, request it to be closed, wait till it's closed, promote it to release, and finally wait till it's synced to maven central. It also tries to be helpful by making sure you don't release an incorrect artifact by comparing maven coordinates and versions.

The following Gradle properties are expected in the project's gradle.properties:

GROUP=com.example
POM_ARTIFACT_ID=nicolascage
VERSION_NAME=4.2.0

Alternatively, you can provide the Maven coordinates with the -c option:

$ startship release -c com.example:nicolascage:4.2.0

Additionally, the following properties are needed in your machine's gradle.properties to perform operations with your Sonatype Nexus account:

SONATYPE_NEXUS_USERNAME=username
SONATYPE_NEXUS_PASSWORD=password

Alternatively, you can provide these to the command line with the -u and -p options, respectively. The values passed to -u and -p can be either Gradle property keys or the actual username or password values.

$ startship release -u yourActualUsername -p YOUR_PASSWORD_GRADLE_PROPERTY

Contributing and running locally

Sonatype's endpoints are badly documented and can be really flaky at times, causing startship to fail. If you run into issues, please consider sending a PR. For your local development, startship can be modified to run in mock mode:

 // AppModule.kt
 val nexus = RealNexus(
-  api = nexusModule.nexusApi,
+  api = MockNexusApi(pom),
   debugMode = debugMode,
-  config = NexusConfig.DEFAULT,
+  config = MOCK_NEXUS_CONFIG,
   scheduler = Schedulers.single()
 )

Next, run startship using:

./run release -c com.example:nicolascage:4.2.0

License

Copyright 2020 Saket Narayan.

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.

Versions

Version
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0