SetupBuilder icon indicating copy to clipboard operation
SetupBuilder copied to clipboard

Gradle kts 7.2 dmg build throws exception

Open Nebdir opened this issue 3 years ago • 4 comments

By running your plugin with gradle 7.2 and plugin version 7.2.13, an exception is thrown that the property codeSigning of type Dmg is missing an input or output annotation.

I think i might miss an option thats required. Whats the minimal options that i need to build a dmg file? Excluding general options of setupBuilder, of cause.

Nebdir avatar Oct 14 '21 13:10 Nebdir

Can you try this fix?

Horcrux7 avatar Oct 16 '21 10:10 Horcrux7

I also get an error on 'appBuilder' property (output below). I'm happy to try a fix, what do I need to change to try the fixed version?

  - In plugin 'de.inetsoftware.setupbuilder' type 'com.inet.gradle.appbundler.AppBundlerGradleTask' property 'appBuilder' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'de.inetsoftware.setupbuilder' type 'com.inet.gradle.appbundler.AppBundlerGradleTask' property 'codeSign' is missing an input or output annotation.
    
    Reason: A property without annotation isn't considered during up-to-date checking.
    
    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.
    
    Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#missing_annotation for more details about this problem.

bw-itis-archival avatar Oct 18 '21 10:10 bw-itis-archival

I'm happy to try a fix, what do I need to change to try the fixed version?

You need to checkout it and build it with Gradle 7.2 or higher. You need run the tasks clean publish. This should build it to the location ../repo. Then you can use it with:

buildscript {
  repositories {
    maven {
      url uri('../repo')
    }
  }
  dependencies {
    classpath "de.inetsoftware:SetupBuilder:+"
  }
}

apply plugin: "de.inetsoftware.setupbuilder"

Horcrux7 avatar Oct 18 '21 15:10 Horcrux7

Can you try this fix?

sry for the late reply, but currently im running out ouf time, but i wanted to say thank you for your quick response.

Nebdir avatar Oct 25 '21 15:10 Nebdir

@Horcrux7 — Any chance of a release including these fixes? Thanks!

xian avatar Nov 08 '22 21:11 xian

We will make a new release in some days.

Horcrux7 avatar Nov 17 '22 08:11 Horcrux7

There is a new release. Sorry for the delay. There was problems with Travis.

Horcrux7 avatar Jan 02 '23 08:01 Horcrux7