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

Semantic release ignores archiveBaseName / archiveFileName?

Open ghost opened this issue 3 years ago • 1 comments

Thanks for the plugin!

One slight issue, semantic release seemingly ignores the Jar file's specification for archiveBaseName & archiveFileName.

jar specification:

jar {
    zip64 = true
    manifest {
        attributes(
                'Main-Class': 'MainClass.Here'
        )
    }

    from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }}
    from sourceSets.test.output
    archiveBaseName = 'filename'
    archiveFileName = 'filename.jar'
    exclude 'file'
}

semanticRelease configuration

project.ext.ghToken = System.getenv('GH_TOKEN')
semanticRelease {
    releaseBranches {
        include 'release'
    }
    repo {
        releaseAsset jar
        ghToken = project.ghToken
    }
}

Error:

path/to/dir/filename-1.1.0.jar (No such file or directory)

ghost avatar May 17 '21 20:05 ghost

Can you please attach the Stacktrace by starting gradle with an additional -s parameter.

tschulte avatar May 18 '21 07:05 tschulte