Repository navigation
Warn about an unversioned project only once its build script has run - #796
Merged
Merged
Conversation
ggleyzer
approved these changes
Nov 23, 2026
lagergren
force-pushed
the
lagergren/plugin-versioned-check-767
branch
from
November 23, 2026 14:30
d6c8ec2 to
857277b
Compare
lagergren
enabled auto-merge (squash)
November 23, 2026 14:30
…767) The XTC plugin warned about a project without a version when it was applied. That reached two projects that aren't unversioned: - the project Gradle creates to generate the accessors of a precompiled script plugin, such as xtclang/examples' xtc-conventions, which applies the plugin in its plugins block. Its consumers can't give it a version, and it printed "Project 'gradle-kotlin-dsl-accessors' has unspecified version" once per build; - a project that applies the plugin in its plugins block and sets its version later in the script. The check now runs when the project has been evaluated, or at once if it already has been. It reads the version the build script ends up with. Gradle never evaluates the accessors' project: for it, GeneratePrecompiledScriptPluginAccessors fires beforeEvaluate, applies the plugins and reads the schema, but fires no afterEvaluate (Gradle 9.9.1). A project whose version stays unspecified still gets the warning. ProjectVersionWarningTest (new, TestKit, run with RUN_INTEGRATION_TESTS=true like the other TestKit tests) covers the three cases. With master's XtcProjectDelegate, the two that expect no warning fail: they print the warning for 'gradle-kotlin-dsl-accessors' and 'conventions', and for 'versioned'. The precompiled script plugin case builds a buildSrc with kotlin-dsl, which resolves its plugins from the Gradle Plugin Portal.
lagergren
force-pushed
the
lagergren/plugin-versioned-check-767
branch
from
November 23, 2026 14:33
857277b to
7db3dd1
Compare
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…the TestKit home that CI was to keep for it The case reproduced xvm#767 end to end, downloading kotlin-dsl, about 110 MB, on every CI run, which failed CI three times on 2026-11-25. 0e635b7 and 71f4d22 kept the download in a TestKit home that CI's Gradle cache would save (xvm#806). Instead the case goes, as on master in xvm#808 (which replaces #806): #796's deferral, which fixed #767, stays tested by aVersionSetAfterThePluginIsAppliedGetsNoWarning without any download. So the plugin's test JVMs no longer get -Dxtc.testkit.dir, the test no longer sets a TestKit home, and setup-xvm-project's excludes are as before. Validated: the test file is xvm#808's; RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun on #808's branch, 77 tests, 0 failures, 0 skipped, no request to the plugin portal or Maven Central; spotlessCheck.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…the TestKit home that CI was to keep for it The case reproduced xvm#767 end to end, downloading kotlin-dsl, about 110 MB, on every CI run, which failed CI three times on 2026-11-25. 0e635b7 and 71f4d22 kept the download in a TestKit home that CI's Gradle cache would save (xvm#806). Instead the case goes, as on master in xvm#808 (which replaces #806): #796's deferral, which fixed #767, stays tested by aVersionSetAfterThePluginIsAppliedGetsNoWarning without any download. So the plugin's test JVMs no longer get -Dxtc.testkit.dir, the test no longer sets a TestKit home, and setup-xvm-project's excludes are as before. Validated: the test file is xvm#808's; RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun on #808's branch, 77 tests, 0 failures, 0 skipped, no request to the plugin portal or Maven Central; spotlessCheck.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…the TestKit home that CI was to keep for it The case reproduced xvm#767 end to end, downloading kotlin-dsl, about 110 MB, on every CI run, which failed CI three times on 2026-11-25. 0e635b7 and 71f4d22 kept the download in a TestKit home that CI's Gradle cache would save (xvm#806). Instead the case goes, as on master in xvm#808 (which replaces #806): #796's deferral, which fixed #767, stays tested by aVersionSetAfterThePluginIsAppliedGetsNoWarning without any download. So the plugin's test JVMs no longer get -Dxtc.testkit.dir, the test no longer sets a TestKit home, and setup-xvm-project's excludes are as before. Validated: the test file is xvm#808's; RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun on #808's branch, 77 tests, 0 failures, 0 skipped, no request to the plugin portal or Maven Central; spotlessCheck.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…the TestKit home that CI was to keep for it The case reproduced xvm#767 end to end, downloading kotlin-dsl, about 110 MB, on every CI run, which failed CI three times on 2026-11-25. 0e635b7 and 71f4d22 kept the download in a TestKit home that CI's Gradle cache would save (xvm#806). Instead the case goes, as on master in xvm#808 (which replaces #806): #796's deferral, which fixed #767, stays tested by aVersionSetAfterThePluginIsAppliedGetsNoWarning without any download. So the plugin's test JVMs no longer get -Dxtc.testkit.dir, the test no longer sets a TestKit home, and setup-xvm-project's excludes are as before. Validated: the test file is xvm#808's; RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun on #808's branch, 77 tests, 0 failures, 0 skipped, no request to the plugin portal or Maven Central; spotlessCheck.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
…plugin tests' one download from the network The case reproduced xvm#767 end to end: its buildSrc applied kotlin-dsl, which it downloaded from the Gradle plugin portal and Maven Central, about 110 MB, into a TestKit home that every CI run starts without. On 2026-11-25 that download failed CI three times (429 Too Many Requests, Could not GET) while the rest of the build passed. #796 fixed xvm#767 by warning about a project without a version only once its build script has run, which the project that Gradle creates for a precompiled script plugin's accessors never does. aVersionSetAfterThePluginIsAppliedGetsNoWarning checks that deferral without any download, so the case goes, with the plugin classpath helper and the runBuild option that only it used, and the class comment says why such a project is never checked. No plugin test downloads anything now; caching the download instead (xvm#806) would have kept about 110 MB in CI's Gradle cache for it. Validated: RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun, 77 tests, 0 failures, 0 skipped; ProjectVersionWarningTest's 2 cases in 0.5 s, no request to the plugin portal or Maven Central in the log; spotlessCheck passes.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 26, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 27, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
lagergren
added a commit
that referenced
this pull request
Nov 28, 2026
Both branches were backed up as backup/lagergren-errs-2026-11-25 (c8c6d6f) and backup/693-2026-11-25 (49b5f8a), and tags of those names, then rebased onto master's 8b5257f, past #792, #798 (Gradle 9.9.2), #797, #796, #799, #800, #790, #793 and #803 (the JIT milestone's JitInfo). errs-rebase-2026-11-25.tsv maps errs' 1746 commits (from 60d36426eb, the remote's c8c6d6f with the commit that aligns errs' code to #693's): 1739 replayed, six with a resolved conflict, and a2e343c dropped, which master has as #800. errs-693-rebase-2026-11-25.tsv maps #693's 468 (from 49b5f8a): 466 replayed, one resolved, and its #800 copy 09e61bd dropped. Every conflict was in TypeConstant.java, where #803 moved the JIT class names into JitInfo, removing getJitCCType(), getJitICType() and the CD_Class and CD_Ctx imports. Each is resolved keeping master's change and the branch's: - errs' 1a5a748, 3f272ef, 7becf17, a500b09 and ac92dcf edit getJitICType()'s assert (its listener, BLACKHOLE to PROBE to silent(PROBE)) or the two methods' javadoc. Those methods are gone, so those hunks keep master's side; the commits' other changes apply. - errs' 23faf03 moves the ErrorListener static imports up beside CD_Class and CD_Ctx, and #693's 29029a8 adds them there; both keep the ErrorListener imports there, without the two imports #803 removed. #693's 29029a8 also has errs' getJitICType() hunk, resolved the same way. The rebase broke javatools' compile without a conflict: #803's three new newable checks say ErrorListener.BLACKHOLE, which errs no longer has. The commit that removes BLACKHOLE (errs e2e53f3, #693 1ddea3e) now also makes those checks say silent(PROBE), so that every commit after it compiles, as javatools' compileJava there and halfway to the tip shows on both branches; the commit before this one (#693 ef37030) drops TypeConstant's import of PROBE, whose only use went with getJitICType(). The two tables' new commits are those of this history. Checks: - Outside the 83 files master's nine commits changed, both rebased trees are identical to the trees they were rebased from (60d36426eb, 49b5f8a). Each of the ten files that master and the branches both changed equals a three-way merge of the old tree's file and master's, except TypeConstant.java, whose two conflicts are the ones above. - errs' and #693's code is identical: git diff of the two heads outside doc/errs, *.md and lang/doc/plans is empty. - On errs, after :xdk:installDist: :javatools:test 648 tests, 0 failures, 42 skipped (all @disabled, Windows-only or RUN_INTEGRATION_TESTS); :plugin:validatePlugins, and :plugin:test 83, 0 failures, 14 skipped; :xdk:testXtc, which has no test modules of its own, and the XDK's two, :xdk:lib-json:testXtc (179 passed) and :xdk:lib-metrics:testXtc (4 passed); :lang:lsp-server:test with -PlspTests=default 2593, 0 failures, 773 skipped (the default tier's later parameterized cases); :lang:intellij-plugin:test 233, 0 failures, 0 skipped, and compileIntegrationTestKotlin; :lang:dap-server:test 61, 0 failures, 0 skipped. spotlessCheck passes and git status is clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #767. The XTC plugin warned
Project '…' has unspecified versionwhen it was applied, and two projects got that warning wrongly:plugins {}block, such as xtclang/examples'xtc-conventions, makes Gradle create a synthetic project,gradle-kotlin-dsl-accessors, to generate its accessors. That project has no version, and consumers can't give it one, so every such build printed the warning once.plugins {}and setsversion = …further down got the warning too, because the check ran before the rest of the script.Change: the check runs once the project has been evaluated, or at once if it already has been. So it reads the version the build script ends up with.
Why this covers the accessor project: Gradle never evaluates it. In Gradle 9.9.1,
GeneratePrecompiledScriptPluginAccessorsfiresbeforeEvaluate, applies the plugins and reads the project's schema, but never firesafterEvaluate. This is the issue's preferred option, a check outside apply time, rather than matching the accessor project by its Gradle-internal name.Unchanged: a project whose version stays unspecified still gets the warning.
The check stays at configuration time. It now runs when the project's evaluation ends, which is still in the configuration phase, so it is no more of a configuration-cache concern than before. A reused cache entry skips configuration, so the warning doesn't print then, as before.
Type of change
Resolves/Fixes
How Has This Been Tested?
ProjectVersionWarningTest(new) uses TestKit and runs withRUN_INTEGRATION_TESTS=true, like the plugin's other TestKit tests:aProjectWithoutAVersionGetsTheWarningaVersionSetAfterThePluginIsAppliedGetsNoWarningversion = "1.0"afterplugins {}aPrecompiledScriptPluginThatAppliesThePluginGetsNoWarningbuildSrcwithkotlin-dsland anxtc-conventionsscript that applies the plugin; the root applies it and sets its versiongeneratePrecompiledScriptPluginAccessorsranThe last test resolves
kotlin-dsl's plugins from the Gradle Plugin Portal.With master's
XtcProjectDelegate, the two "no warning" tests fail. Their output has the warning forgradle-kotlin-dsl-accessors, forconventionsand forversioned, which are #767's two cases. The first test passes both before and after the change.The plugin gate:
RUN_INTEGRATION_TESTS=true ./gradlew :plugin:validatePlugins :plugin:test --rerun --warning-mode all: 73 tests, 0 failures, 0 skipped, and no deprecation in the output../gradlew spotlessCheckpasses../gradlew :manualTests:runXtc --module=TestFizzBuzzruns FizzBuzz, and its output has no "unspecified version".Not tested here: a build of xtclang/examples with a plugin snapshot that has this change, the issue's first acceptance check. The precompiled script plugin test builds the same shape.