Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Groovy parity: Generate Kotlin DSL accessors for ArtifactHandler #889

Closed
mkobit opened this issue May 22, 2018 · 3 comments
Closed

Groovy parity: Generate Kotlin DSL accessors for ArtifactHandler #889

mkobit opened this issue May 22, 2018 · 3 comments

Comments

@mkobit
Copy link
Contributor

mkobit commented May 22, 2018

The ArtifactHandler is missing similar DSL methods for adding publishable artifacts.
In Groovy, we can do something like:

 configurations {
   //declaring new configuration that will be used to associate with artifacts
   schema
 }

 task schemaJar(type: Jar) {
   //some imaginary task that creates a jar artifact with some schema
 }

 //associating the task that produces the artifact with the configuration
 artifacts {
   //configuration name and the task:
   schema schemaJar
 }

In Kotlin, we need to use add:

artifacts {
  add("schema", schemaJar)
}

Expected Behavior

Similar DSL or alternative method of producing artifacts for Kotlin build scripts.

artifacts {
  schema(schemaJar)
}

Current Behavior

No accessors generated and must call the add methods.

Context

Creating additional publishable artifacts from a project that can be consumed by project dependencies.

Your Environment

  • Gradle 4.8-rc-1
@eskatos
Copy link
Member

eskatos commented Jun 20, 2018

Related to #710

@mkobit
Copy link
Contributor Author

mkobit commented Aug 13, 2018

There seems to be some duplicate APIs between ArtifactHandler and ConfigurationPublications from Configuration.getOutgoing - does is still make sense for these to be added or something else around ArtifactHandler be done?

@eskatos
Copy link
Member

eskatos commented Dec 5, 2018

Closing as delivered in #1020, thanks again @mkobit!

@eskatos eskatos closed this as completed Dec 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants