Comments (5)
Just as additional information as I had a cursory look already.
I think to support something like that, you would need annotations that are written in Kotlin so that they can have the property
target.
And additionally the description of that target says "annotations with this target are not visible to Java", so you would most probably also need the consuming code in Kotlin so that it can see those annotations with "property" target.
from gradle.
If you read it as
private val _a2: Property<String> = objects.property()
@get:Input
val a2: Provider<String> get() = _a2
it makes more sense.
Besides that as you have a getter, you could actually annotate the getter directly instead of the property already like
private val _a2: Property<String> = objects.property()
val a2: Provider<String> @Input get() = _a2
from gradle.
We should do this. Not sure when.
from gradle.
This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary.
Another question that might be interesting on this topic is: How will these annotations work with Java Records?
from gradle.
Note that a2
in the example snippet doesn't make sense as a new property would be returned each time a2
is accessed.
from gradle.
Related Issues (20)
- Update the sample and the Kotlin DSL to support Scala3 HOT 1
- Provide the Sequence Task DSL HOT 2
- Incorrect pom file generation for non-transitive configurations HOT 1
- bug
- Add additional methods to SourceSet providers based on name HOT 6
- TransformAction: Get dependency information of the InputArtifact HOT 1
- Move getMethod back from AbstractTestDescriptor to TestDescriptor interface
- GeneratePrecompiledScriptPluginAccessors should instrument classpath using dependency metadata
- String-notated task dependencies shouldn't be flagged as violations
- Verify classloader pieces when loading from configuration cache
- `DefaultNamedDomainObjectCollection` stores objects by `getName()` but looks them up by `objectName` HOT 2
- Investigate behaviour changes with Jacoco and TestKit after Gradle 8.7 HOT 4
- Task selection failure reports incorrect file location via Problems API
- Unexpected warning "Consumable configurations with identical capabilities" reported in unusual location HOT 2
- Gradle 8.7 produces 0% coverage reports with Jacoco for Gradle TestKit tests HOT 2
- Custom AttributeCompatibilityRule breaks dependency resolution for composite build HOT 4
- Validate CODEOWNERS file
- Plugins published to the plugin portal don't have a license HOT 3
- The usage of plugins{} in settings.gradle HOT 1
- Remote caching of buildscripts causes large regression in IDE sync performance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle.