github-release-gradle-plugin icon indicating copy to clipboard operation
github-release-gradle-plugin copied to clipboard

2.5.2: project no longer configures after update

Open mduft opened this issue 6 months ago • 1 comments

FAILURE: Build failed with an exception.

* Where:
Build file 'E:\other\workspaces\deployment\deployment\test-data\build.gradle' line: 237

* What went wrong:
A problem occurred evaluating project ':test-data'.
> Could not find method owner() for arguments [bdeployteam] on extension 'githubRelease' of type com.github.breadmoirai.githubreleaseplugin.GithubReleaseExtension.

The groovy build.gradle looks very very much like what you have in the documentation so I cannot see what I'm doing wrong.

githubRelease {
    if(project.hasProperty('githubToken')) {
        token project.getProperty('githubToken')
    }
    owner 'bdeployteam'
    repo 'bdeploy'
    tagName "v${version}"
    releaseName "Release ${version}"
    targetCommitish "master"

    releaseAssets.from(project(":minion").linux64DistZip)
    releaseAssets.from(project(":minion").win64DistZip)
    releaseAssets.from(project(":api").shadowJar)
    releaseAssets.from(fileTree(project(":api").resolve.outputDir))
    releaseAssets.from(project(":test-data").product1Zip)
    releaseAssets.from(project(":test-data").product2Zip)
    releaseAssets.from(project(":test-data").product3Zip)

    // increase read and write timeouts as the files are rather large :)
    client new OkHttpClient.Builder().readTimeout(10, TimeUnit.MINUTES).writeTimeout(10, TimeUnit.MINUTES).build();
}

mduft avatar Dec 21 '23 09:12 mduft