Coder Social home page Coder Social logo

magik's Issues

Some problems with setting up the plugin

First of all, I am not that knowledgeable when it comes to gradle, so it is certainly possible that I have missed some things.

I tried using this plugin following the README file but came across two problems:

  1. Gradle is unable to build the project when using the alsoSnapshot() option
  2. Gradle is able to build but unable to publish when not using the alsoSnapshot() option

Some links:

  • Error log for the first problem
    • Line 31 is }.alsoSnapshot() // this clones the publication for snapshots
    • Following the stacktrace, magik most likely has a problem when running git describe --tags which outputs fatal: No names found, cannot describe anything. which it then attempts to parse to an int in the gitDistance function
    • Do I need tags for this to work? There is no mention in the README about that
  • Error log for the second problem
    • Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 52: https://api.github.com/repos/kwerber/abc/contents/de\kwerber\abc\0.1\abc-0.1.jar
    • The illegal character is the first \
  • build.gradle.kts for the first problem
  • build.gradle.kts for the second problem

Some additional information:

  • I am testing this plugin on my https://github.com/kwerber/abc repo (where commit 2 and 3 cause problems 1 and 2)
  • Gradle version 7.0.2
  • Java openjdk version "16.0.1" 2021-04-20
  • and git version 2.31.1.windows.1

Do you have some android example project anywhere ?

I was getting this up and running but I use groovy not kotlin in gradle, I don't know if that is the reason or somethiung else but it fails ..

repositories {
    github {
        domain = "kotlin-graphics/mary"
    }
}

Fails with :
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method github() for arguments [library_e4xwdkfqm5vk8ubh7idqabudu$_run_closure5$_closure14@9d1948e] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.

Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'release' for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.

Is it possible to disable merging to master?

Hi, I use this for publishing maven packages, and it usually works great, so thank you! But now I need to create a new repo from another existing repo, and I would like to publish the old releases that are way behind the master branch.

When I try locally, it just hangs forever. When I use GitHub actions it attempts to merge into master and fails when there is a merge conflict.

So basically, can I configure it to work the same as standard maven publishing if the release is outdated, without retroactively reverting back to standard gradle publishing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.