Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/gradle-jpi-plugin
  Commit: b9c95f8a71a7eae89cb5c26aa1ec50692db0c9c9
      
https://github.com/jenkinsci/gradle-jpi-plugin/commit/b9c95f8a71a7eae89cb5c26aa1ec50692db0c9c9
  Author: Mike Glazer <[email protected]>
  Date:   2021-12-13 (Mon, 13 Dec 2021)

  Changed paths:
    M src/main/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPlugin.groovy

  Log Message:
  -----------
  Fix a number of initialization order issues with 0.43.0

I had a number issues applying this upgrade from 0.38.0 because I needed
to build against Gradle 7.3.1

Specifically the main error I received was:

```
* What went wrong:
A problem occurred evaluating project ':jenkins-skylab-plugin'.
> Failed to apply plugin class 
> 'org.jenkinsci.gradle.plugins.manifest.JenkinsManifestPlugin'.
   > Could not create task ':jenkins-skylab-plugin:generateJenkinsManifest'.
      > Extension of type 'JpiExtensionBridge' does not exist. Currently 
registered extension types: [ExtraPropertiesExtension, EclipseModel, IdeaModel, 
ProcessorsExtension, BlacklistExtension, BasePluginExtension, 
DefaultArtifactPublicationSet, SourceSetContainer, ReportingExtension, 
JavaPluginExtension, JavaToolchainService, TestingExtension, 
BaselineJavaVersionExtension, GroovyRuntime]
```

Which made sense because the extension was being accessed before it
was actually constructed. I'm unsure if Gradle changed initialization
order in some versions of Gradle, but in any case, moving a few of
these initialization blocks around managed to fix my issue.


  Commit: 785d65cc8319adb84525866d43a9e2693cacdcf7
      
https://github.com/jenkinsci/gradle-jpi-plugin/commit/785d65cc8319adb84525866d43a9e2693cacdcf7
  Author: Steve Hill <[email protected]>
  Date:   2022-02-27 (Sun, 27 Feb 2022)

  Changed paths:
    M src/main/groovy/org/jenkinsci/gradle/plugins/jpi/JpiPlugin.groovy

  Log Message:
  -----------
  Merge pull request #194 from mglazer/mglazer/fix-registration

Fix a number of initialization order issues with 0.43.0


Compare: 
https://github.com/jenkinsci/gradle-jpi-plugin/compare/017cd169466e...785d65cc8319

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/gradle-jpi-plugin/push/refs/heads/master/017cd1-785d65%40github.com.

Reply via email to