Powermock: error in shipkit plugin when trying to build, no documentation for library building process

Created on 17 Feb 2018  路  5Comments  路  Source: powermock/powermock

How to reproduce:

git clone
cd powermock
gradle build

result

...
> Failed to apply plugin [class 'org.shipkit.internal.gradle.git.GitPlugin']
   > Please configure 'shipkit.gitHub.writeAuthUser' value (String).

Didn't find anywhere solution of the problem. Could you please update documentation with actual instruction on how to build the library.

For myself resolved it by deleting rows from shipkit.gradle

    gitHub.writeAuthUser = System.getenv("GH_USER")
    gitHub.writeAuthToken = System.getenv("GH_WRITE_TOKEN")

Probably not the best solution...

Most helpful comment

I also encountered the same problem. Can someone help solve it? Thank you very much

All 5 comments

@astafev the @shipkit framework is used to simplify making releases. Now it's enough to just merge pull request to a release branch to do release to Bintray and then publish to Maven Central. However, it should not affect a regular build.

@wwilk could you advice how can a developer avoid specifying GH_USER and GH_WRITE_TOKEN and continue build the project locally?

I also encountered the same problem. Can someone help solve it? Thank you very much

just use:
GH_USER=xxx GH_WRITE_TOKEN=xxx ./gradlew build

This is really annoying, you cannot even import the project to IntelliJ because of this unless you set those environment properties or do the work-around OP suggested.

@thekingnothing I have created a minimal fix see #1025
PTAL

Was this page helpful?
0 / 5 - 0 ratings