- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for withoutVersion (0.2 sec)
-
platforms/documentation/docs/src/docs/userguide/dep-man/02-declaring-dependency-versions/single_versions.adoc
.Declaring a dependency without version ==== include::sample[dir="snippets/dependencyManagement/declaringDependencies-withoutVersion/kotlin",files="build.gradle.kts[tags=dependencies-without-version]"] include::sample[dir="snippets/dependencyManagement/declaringDependencies-withoutVersion/groovy",files="build.gradle[tags=dependencies-without-version]"]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 11:46:26 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/troubleshooting/version_catalog_problems.adoc
If you are using the `Settings` DSL to create a catalog, you can use the `to` method in different flavors: ```groovy library("some-alias", "com.mycompany:some-lib:1.1").withoutVersion() // or library("some-alias", "com.mycompany", "some-lib").version("1.1") ``` If you are using TOML files to create a catalog, you can use one of the following notations: ```toml [libraries]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jan 13 21:49:09 UTC 2024 - 8.2K bytes - Viewed (0) -
platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/dependencymanagement/SamplesDeclaringDependenciesIntegrationTest.groovy
then: dslDir.file('build/libs/spring-web-5.0.2.RELEASE.jar').isFile() where: dsl << ['groovy', 'kotlin'] } @UsesSample("dependencyManagement/declaringDependencies-withoutVersion") def "can use declare and resolve dependency without version with #dsl dsl"() { TestFile dslDir = sample.dir.file(dsl) executer.inDirectory(dslDir) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 4.6K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/initialization/dsl/VersionCatalogBuilder.java
/** * Do not associate this alias to a particular version, in which * case the dependency notation will just have group and artifact. * */ void withoutVersion(); } /** * Allows configuring the version of a plugin * * @since 7.2 */ interface PluginAliasBuilder { /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 25 20:59:29 UTC 2022 - 6.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/DefaultVersionCatalogBuilder.java
.details("A version was not set or explicitly declared as not wanted") .solution("Call `.version()` to give the alias a version") .solution("Call `.withoutVersion()` to explicitly declare that the alias should not have a version"))); } for (Map.Entry<String, BundleModel> entry : bundles.entrySet()) { String bundleName = entry.getKey();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 32.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/DefaultVersionCatalogBuilderTest.groovy
then: model.getPlugin("my").version.requiredVersion == "1.5" } def "can create an alias with an empty version"() { builder.library("foo", "org", "foo").withoutVersion() when: def model = builder.build() then: model.getDependencyData("foo").version.requiredVersion == "" } @VersionCatalogProblemTestFor(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Dec 17 22:25:43 UTC 2023 - 12.6K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/api/internal/catalog/problems/VersionCatalogErrorMessages.groovy
Reason: A version was not set or explicitly declared as not wanted. Possible solutions: 1. Call `.version()` to give the alias a version. 2. Call `.withoutVersion()` to explicitly declare that the alias should not have a version. ${documentation}""" } } static class MissingCatalogFile extends InCatalog<MissingCatalogFile> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 09 14:11:31 UTC 2023 - 17.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/LibrariesSourceGeneratorTest.groovy
it.prefer('1.2') it.strictly('[1.0, 2.0[') } library('bar', 'group', 'bar').versionRef('barVersion') library('boo', 'group', 'boo').withoutVersion() plugin('fooPlugin', 'org.foo.plugin').version('1.0') plugin('barPlugin', 'org.bar.plugin').versionRef('barVersion') plugin('bazPlugin', 'org.baz.plugin').version('') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 08:26:24 UTC 2024 - 19.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/VersionCatalogExtensionIntegrationTest.groovy
details == 'A version was not set or explicitly declared as not wanted' solutions == [ 'Call `.version()` to give the alias a version', 'Call `.withoutVersion()` to explicitly declare that the alias should not have a version', ] } } def "logs contain a message indicating if an unfinished builder is overwritten with one that finishes"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 13:37:31 UTC 2024 - 77.8K bytes - Viewed (0)