Comments (5)
I'm seeing this as well.
from github-release-gradle-plugin.
Same here, this is urgent! It prevents me from upgrading everything to gradle 5.0!
from github-release-gradle-plugin.
I observe something strange (at least to me). I tried to use the plugin in 2 ways:
**option 1) **
apply plugin: 'com.github.breadmoirai.github-release'
githubRelease {
def _token = GITHUB_TOKEN
owner = xxx
repo = xxx
releaseAssets.from("$target_dir")
body {
token = _token
if (releaseArtefacts) {
if (development_stage == '0') {
tagName = "DEV"
releaseName = "DEV"
targetCommitish = "master"
body = "Latest development version (aimed at developers).\nBuild ... Release on ...."
prerelease = true
overwrite = false
println("DEVELOPMENT version has been released on GitHub")
} else if (development_stage == '1') {
tagName = "BETA"
releaseName = "BETA"
targetCommitish = "master"
body = "..................."
prerelease = true
overwrite = true
println("BETA version has been released on GitHub.\nBuild ... Release on ....")
}
}
}}
this fails with the following error:
FAILURE:
Build failed with an exception.
What went wrong:okhttp3/OkHttpClient
Exception is:java.lang.NoClassDefFoundError: okhttp3/OkHttpClient
option 2 (the one I would eventually like to use, i.e use plugin only if certain requirements are met):
task ReleaseToGitHub() {
group 'tool'
if (releaseArtefacts && ['0', '1''].contains(development_stage) && upstreamFixed) {
println("I apply")
apply plugin: 'com.github.breadmoirai.github-release'
githubRelease {
def _token = GITHUB_TOKEN // required token for your personal access with repo permissions
owner = 'akasolace'
repo = 'HO'
println("$target_dir")
releaseAssets.from("$target_dir")
println(releaseAssets)
body {
token = _token
if (releaseArtefacts) {
if (development_stage == '0') {
tagName = "DEV"
releaseName = "DEV"
targetCommitish = "master"
body = "Latest development version (aimed at developers).\nBuild ... Release on ...."
prerelease = true
overwrite = false
} else {
tagName = "BETA"
releaseName = "BETA"
targetCommitish = "master"
body = "..................."
prerelease = true
overwrite = true
} } } } }}
in that case the task is running without error, it goes though the statement but does not do anything
Could you please tell me what I am doing wrong?
Thank you
from github-release-gradle-plugin.
@akasolace Try adding this to the top of your build file
buildscript {
repositories {
jcenter()
}
}
from github-release-gradle-plugin.
I already have a
repositories { jcenter() }
if I enclose it into a buildscript block then it breaks
if I simply add that extra block it does not change anything. I have the same behaviour as the one described above.
from github-release-gradle-plugin.
Related Issues (20)
- Add a dry run option HOT 3
- Release succeeds even though asset upload fails HOT 2
- Update to OkHttp 4.x HOT 1
- [question] is it possible to call twice in a row githubRelease
- Plugin errors when using a new value for GRADLE_USER_HOME HOT 2
- Incompatible with Gradle 7.x
- githubRelease stopped working with 2.3.7 HOT 4
- Plugin portal contains 2.3.12 HOT 1
- Changelogs periodically empty HOT 1
- Calling `setReleaseAssets ` function on the `GithubReleaseTask` causes build to fail.
- Add support for github generated changelogs HOT 1
- Defer the creation of githubRelease task HOT 1
- Client field related error HOT 2
- Review distributed jar contents
- Cannot configure project with release 2.5.0/2.5.1 HOT 2
- Cannot configure project with 2.4.1
- Why library's jar file is so huge?
- Cause: path may not be null or empty string. path='' HOT 1
- java.io.FileNotFoundException: somepath (Access is denied)
- 2.5.2: project no longer configures after update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-release-gradle-plugin.