hanggrian / packaging-gradle-plugin

Start making native distributions for your JAR
http://hanggrian.com/packaging-gradle-plugin/
Apache License 2.0
19 stars 1 forks source link

Can't resolve plugin #5

Open srmo opened 5 years ago

srmo commented 5 years ago

New Issue since #1 is closed. I'm new to gradle myself and I'm stuck with not being able to resolve the plugin. I'm already confused on the syntax you and others use for their build.gradle file. Using Gradle 5.2.1

My current approach is:

plugins {
    // Apply the java plugin to add support for Java
    id 'java'

    // Apply the application plugin to add support for building an application
    id 'application'

    id "packr-gradle-plugin" version "0.1"
}

repositories {
    // Use jcenter for resolving your dependencies.
    // You can declare any Maven/Ivy/file repository here.
    jcenter()
    maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/'}
}

I've also tried with the additional bintray url mentioned in #1 (https://dl.bintray.com/hendraanggrian/packr ) but this doesn't help and the URL itself resolves to Repository path missing or not specified. when trying it in a browser. Also, your package com.hendraanggrian doesn't resolve on sonatype. What am I missing? Looking forward to your suggestions.

hanggrian commented 5 years ago

That maven url from #1 is no longer available as the artifact is moved to https://dl.bintray.com/hendraanggrian/maven/, which is linked to jcenter, so I believe your repositories closure is fine.

I can't help you much since I have never used that approach. My relationship with Gradle is a bit more traditional as you can clearly see in README. But I'm guessing you could try id com.hendraanggrian.packr instead of packr-gradle-plugin.