[GRADLE-1943] Base plugin required for building and publishing artifacts, while documentation suggest otherwise Created: 18/Nov/11  Updated: 04/Jan/13  Resolved: 21/Nov/11

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-5
Fix Version/s: 1.0-milestone-7

Type: Improvement
Reporter: nitko nigdje Assignee: Szczepan Faber
Resolution: Fixed Votes: 0


 Description   

I have a subproject with a script similar to this one here:

build.gradle
task myArchive(type: Zip) {
  // create some archive here
}

configurations {
    installer
}

artifacts {
    installer myArchive
}

uploadInstaller {
    uploadDescriptor = false
    repositories { flatDir dirs : 'C:/somewhere' }
}

Let's pretend that this project builds customized zip archives. Notice there isn't any "apply plugin: java".

build'Configuration' and upload'Configuration' do not exist unless one imports base plugin with "apply plugin: base". "Artifact management" chapter of documentation is not clear about this issue. How it is written this should work without any plugin.

Importing base plugin makes build'Configuration' and upload'Configuration' tasks available, however those tasks, and 'myArchive' task from script are hidden from list given by running "gradle tasks"



 Comments   
Comment by Szczepan Faber [ 21/Nov/11 ]

I've patched the docs. See latest snapshot: http://gradle.org/releases/latest/docs/userguide/userguide_single.html#N11870

Thanks for reporting!

Generated at Wed Jun 30 12:08:32 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.