Skip to content

Commit

Permalink
Fix construction of agent plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dtretyakov committed Jan 21, 2016
1 parent 762a213 commit e05d341
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
21 changes: 13 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def versionNumber = "$System.env.versionNumber" != null ? "$System.env.versionNumber" : 'SNAPSHOT'
ext.projectIds = ['group': 'teamcity-dnx-plugin', 'version': versionNumber ]
def versionNumber = System.getenv('versionNumber') != null ? System.getenv('versionNumber') : 'SNAPSHOT'
ext.projectIds = ['group': 'teamcity-dnx-plugin', 'version': versionNumber, 'artifact': 'dnx-plugin.zip']

group = projectIds.group
version = projectIds.version
Expand Down Expand Up @@ -35,15 +35,20 @@ project(':plugin-dnx-agent') {
}

task distrib(type: Zip, dependsOn: jar) {
version = null
archiveName = projectIds.artifact

from libsDir
from (libsDir) {
into 'libs'
}

from configurations.compile {
from (configurations.compile) {
include 'plugin-dnx-*.jar'
into 'libs'
}

from 'teamcity-plugin.xml'

into 'libs'
into 'dnx-plugin'
}

artifacts {
Expand All @@ -62,7 +67,7 @@ project(':plugin-dnx-server') {
}

task distrib(type: Zip, dependsOn: [':plugin-dnx-agent:assemble', jar]) {
archiveName = 'dnx-plugin.zip'
archiveName = projectIds.artifact

from (libsDir) {
into 'server'
Expand All @@ -74,7 +79,7 @@ project(':plugin-dnx-server') {
}

from (project(':plugin-dnx-agent').file('build/distributions')) {
include 'plugin-dnx-agent.zip'
include projectIds.artifact
into 'agent'
}

Expand Down
Empty file removed gradle.properties
Empty file.
4 changes: 4 additions & 0 deletions plugin-dnx-agent/teamcity-plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<teamcity-agent-plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:shemas-jetbrains-com:teamcity-agent-plugin-v1-xml">
<plugin-deployment use-separate-classloader="true"/>
</teamcity-agent-plugin>

0 comments on commit e05d341

Please sign in to comment.