question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a sample of how one can use this plugin?

See original GitHub issue

I was trying to figure out what the initial version of the project should be set to. I created a tag called 0.0.0 and added the plugin without any version details. But that failed with the following error.

No signature of method: org.ajoberstar.reckon.gradle.ReckonPlugin$DelayedVersion.trim() is applicable for argument types: () values: []

Here is how I am using the plugin,

plugins {
    id 'org.ajoberstar.grgit' version '2.1.1'
    id 'org.ajoberstar.reckon' version '0.4.0'
}

apply plugin: 'java'

group = 'xxxxxx'
//version = '0.0.0'

reckon {
    normal = scopeFromProp()
    // preRelease = snapshotFromProp()
}


task printVersionDetails() {
    doLast() {
        println 'Project version is set to: ' + project.getVersion()
    }
}

gradle printVersion -Preckon.scope=patch

Can you please tell me how I should use the plugin? I am a little lost and not sure where the version should be defined.

Environment

Gradle 4.6
Build time:   2018-02-28 13:36:36 UTC
Revision:     8fa6ce7945b640e6168488e4417f9bb96e4ab46c
Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          1.8.0_162 (Oracle Corporation 25.162-b12)
OS:           Mac OS X 10.13.3 x86_64

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ajoberstarcommented, Mar 27, 2018

I haven’t implemented support for detecting uncommitted files, but I’ll open an issue for that. That was a feature of gradle-git, so it would be good to have here too.

0reactions
ajoberstarcommented, Mar 27, 2018

Yeah, we can close this now if we’ve covered all of your questions.

I’ve only published to JCenter for the last couple years (you may notice that grgit on Maven Central is from 2016). Maven Central has more picky publishing rules, and I didn’t want to deal with them when I broke the gradle-git plugin up. Not ruling out adding them in the future, but for now JCenter is the place to look.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 6 Sampler VST Plugins 2022 (And 4 Best FREE Plugins)
In this article, we are going to explore the 6 best sampler plugins available in 2022 as well as the 4 best free...
Read more >
The best plugins and apps for sampling (free sample pack ...
In this tutorial video, we take a look at some of the best plugins and apps for sampling that are currently available, and...
Read more >
The Ultimate Guide to WordPress Plugins: 18 Examples ...
But what if you're not a developer and don't have much experience coding? In that case, you can use a plugin. Grow Your...
Read more >
How do I use the Samples plugin with my DAW?
Getting started with LANDR Samples is fast and easy: Download and install the plugin Open your favorite DAW Launch the plugin Take the......
Read more >
MEGA Sampler - Plugin Alliance
No problem, you can still search and use any of the content you have downloaded, as well as your own personal samples in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found