Skip to content

Instantly share code, notes, and snippets.

View mockitoguy's full-sized avatar

Szczepan Faber mockitoguy

View GitHub Profile
~/mockito/src$ ./gradlew testRelease
Parallel execution is an incubating feature.
> Configure project :
Building version '2.17.3' (value loaded from 'version.properties' file).
> Task :testRelease
Performing release in dry run, with cleanup:
./gradlew releaseNeeded performRelease releaseCleanUp -PdryRun
[releaseNeeded] Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details
@mockitoguy
mockitoguy / gist:751d1f85f2dd8c1eed39612b87ebf0f9
Created February 2, 2018 00:01
Gradle does not attempt downloads from other repositories
Could not resolve all files for configuration :inlay:inlay-impl:compileClasspath.
Could not resolve com.linkedin.statserver-api:statserver-api-restli:0.0.13.
Required by:
project :inlay:inlay-impl
> Could not resolve com.linkedin.statserver-api:statserver-api-restli:0.0.13.
Required by:
project :inlay:inlay-impl
> Could not resolve com.linkedin.statserver-api:statserver-api-restli:0.0.13.
> Could not get resource 'http://lva1-artifactory.corp.linkedin.com:8081/artifactory/release/com/linkedin/statserver-api/statserver-api-restli/0.0.13/statserver-api-restli-0.0.13.ivy'.
> Could not HEAD 'http://lva1-artifactory.corp.linkedin.com:8081/artifactory/release/com/linkedin/statserver-api/statserver-api-restli/0.0.13/statserver-api-restli-0.0.13.ivy'.
@mockitoguy
mockitoguy / gist:aff95d6222295a1be7f1f80992de6d70
Created November 21, 2017 14:34
Output from running "testRelease" task is confusing
> Task :testRelease
Performing release in dry run, with cleanup:
./gradlew releaseNeeded performRelease releaseCleanUp -PdryRun
[releaseNeeded] Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details
[releaseNeeded] Parallel execution is an incubating feature.
[releaseNeeded] Building version '2.12.1' (value loaded from 'version.properties' file).
[releaseNeeded] :android:downloadPreviousReleaseArtifacts
[releaseNeeded] :downloadPreviousReleaseArtifacts
[releaseNeeded] :extTest:downloadPreviousReleaseArtifacts
[releaseNeeded] :inline:downloadPreviousReleaseArtifacts
@mockitoguy
mockitoguy / gist:df76dbf84ab59bb22af518334d25c929
Created May 26, 2017 06:07
Draft shipkit 1.0 user guide / announcement
Shipkit is a toolkit of shipping it. You have code that wants to be delivered to your clients, Shipkit has tools to help you out:
- automatic version bumps - don’t waste time managing your version manually
- automatically generated changelog - offer your customer clean information what changed and why
- changelog that highlights each individual contributor by name - build engaged community
- avoiding publishing binaries if nothing changed - respect your customers’ time
- automatically ship to Bintray and Maven Central - use every opportunity to give your product to the hands of customers.
Great tools for engineers are invisible - you immerse in the flow of coding features, never noticing the machinery that keeps you productive. Focus on code and features, never on release overhead. Shipkit will take care of your releases.
Core use cases, for engs who have code to ship but no existing automation to make it smooth. Shipkit offers plugins that hide most complexity of shipping releases.
@mockitoguy
mockitoguy / gist:0fc07843e12dbe032a3e2875c213b517
Created May 23, 2017 16:42
Git Plugin and tasks in Shipkit
Potential design:
GitPlugin
gitCommit
gitCommitCleanUp
gitTag
gitTagCleanUp
gitPush
mustRunAfter gitCommit
mustRunAfter gitTag
@mockitoguy
mockitoguy / shipkit.gradle
Created May 21, 2017 16:59
Minimum shipkit.gradle
apply plugin: "org.mockito.mockito-release-tools.continuous-delivery"
releasing {
gitHub.repository = "mockito/mockito-release-tools-example"
gitHub.readOnlyAuthToken = "e7fe8fcdd6ffed5c38498c4c79b2a68e6f6ed1bb"
gitHub.writeAuthUser = "shipkit"
}
allprojects {
plugins.withId("org.mockito.mockito-release-tools.bintray") {
@mockitoguy
mockitoguy / gist:1a2c011a975ed6c574b91ea1936d2720
Created May 4, 2017 06:07
mockito: ./gradlew comparePublications -s
~/mockito/src$ ./gradlew comparePublications -s
Parallel execution is an incubating feature.
Building version '2.8.26' (value loaded from 'version.properties' file).
:fetchAllProjectContributorsFromGitHub
Fetching all contributors for project SKIPPED (output file exist)
:inline:sourcesJar
:generatePomFileForJavaLibraryPublication
:android:sourcesJar UP-TO-DATE
:inline:sourcesJar UP-TO-DATE
:inline:generatePomFileForJavaLibraryPublication
@mockitoguy
mockitoguy / gist:e13e16392dc66d0cc2e0fbe8ce5c1015
Created May 3, 2017 15:55
Execution failed for task ':api:comparePublications'
~/mockito/example-release$
~/mockito/example-release$ ./gradlew testRelease
Starting a Gradle Daemon (subsequent builds will be faster)
Using version '0.8.3' of Mockito Release Tools
Building version '0.15.3' (value loaded from 'version.properties' file).
:bumpVersionFile
:bumpVersionFile - updated version file 'version.properties'
- new version: 0.15.4
- previous version: 0.15.3
- notable versions updated: false
@mockitoguy
mockitoguy / build.log
Created February 17, 2017 20:48
cyclic dependencies with gradle composite builds
~/linkedin/composite/ligradle-composite/ligradle-composite$ gradle idea --include-build ../ligradle-core/ -s
[composite-build] Configuring build: /Users/sfaber/linkedin/composite/ligradle-composite/ligradle-core
:ligradle-core:precompileAll
Precompiling...
:ligradle-core:compileJava UP-TO-DATE
:ligradle-core:processResources UP-TO-DATE
:ligradle-core:classes UP-TO-DATE
:ligradle-core:jar UP-TO-DATE
:ligradle-jvm:precompileAll
Precompiling...
@mockitoguy
mockitoguy / gist:9138fb7373e6431be7a5fb063e711a40
Created February 9, 2017 18:48
Unable to find a usable idle daemon. I have connected to 100 different daemons
mint setup | [INFO] Running voyager-ios './scripts/setup.sh'
[INFO] Executing: clean reinit generate-static-app-def -Prelease=true
[INFO] Using versions:
[INFO] Environment: Gradle 3.3, JDK 1.8.0_40
[INFO] Gradle Plugins: client-typed-urn-generator:1.0.18, ligradle-jvm:2.0.22, lix-cleanup-plugin:0.1.20, mntf-ios-plugins:1.0.0, rum-ios:3.0.63, tracking-constants:0.1.4
FAILURE: Build failed with an exception.
* What went wrong:
Unable to find a usable idle daemon. I have connected to 100 different daemons but I could not use any of them to run the build. BuildActionParameters were DefaultBuildActionParameters{, currentDir=/export/home/tester/hudson/data/workspace/MP_TRUNKDEV_MP_DEP/voyager-ios_92b43ac4cc8751cc3fe08defaa544e0cc376caf8, systemProperties size=55, envVariables size=104, logLevel=LIFECYCLE, useDaemon=true, continuous=false, interactive=false, injectedPluginClasspath=[]}.