Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release files update #112

Merged
merged 5 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@ name-template: '$NEXT_MINOR_VERSION'
tag-template: '$NEXT_MINOR_VERSION'
categories:
- title: '🚀 New Features'
label: 'type:new feature'
labels:
- 'type:new feature'
- title: '🔬 Improvements'
label: 'type:enhancement'
labels:
- 'type:improvement'
- title: '🐞 Bug Fixes'
label: 'type:bug'
labels:
- 'type:bug'
- title: '⬆️ Dependency Updates'
labels:
- 'type:dependencies'
- title: '👻 Internal changes'
labels:
- 'type:internal'

change-template: '* $TITLE (via #$NUMBER) - @$AUTHOR'
template: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Draft
on:
push:
branches:
- master
- 'master'

jobs:
update_draft_release:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ jobs:
java-version: 1.8
- name: "Gradle Build"
run: ./gradlew installTeamcity2017 build -Pversion=${GITHUB_REF:10}
- name: "Upload binaries"
uses: actions/upload-release-asset@v1.0.1
- name: "Gradle Publish to Jetbrains"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: allure-teamcity-server/build/distributions/allure-teamcity.zip
asset_name: allure-teamcity.zip
asset_content_type: application/octet-stream
JETBRAINS_TOKEN: ${{ secrets.JETBRAINS_TOKEN }}
run: ./gradlew :allure-ee-teamcity-server:publishPlugin -Pversion=${GITHUB_REF:10}
25 changes: 14 additions & 11 deletions allure-teamcity-agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ apply plugin: "com.github.rodm.teamcity-agent"

teamcity {
version = teamcityVersion
descriptor {
pluginDeployment {
useSeparateClassloader = true
agent {
descriptor {
pluginDeployment {
useSeparateClassloader = true
}
}
}
}
Expand All @@ -17,14 +19,15 @@ agentPlugin {
dependencies {
compile project(':allure-teamcity-common')

compile 'commons-io:commons-io:2.7'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'commons-logging:commons-logging:1.1.3'
compile 'commons-httpclient:commons-httpclient:3.1'
compile 'org.apache.commons:commons-compress:1.16.1'
compile 'commons-httpclient:commons-httpclient'
compile 'commons-logging:commons-logging'

provided 'com.intellij:openapi:7.0.3'
provided "org.jetbrains.teamcity:agent-api:${teamcityVersion}"
provided "org.jetbrains.teamcity.internal:agent:${teamcityVersion}"
compile 'org.apache.commons:commons-compress'
compile 'org.apache.commons:commons-io'
compile 'org.apache.commons:commons-lang3'

provided 'com.intellij:openapi'
provided "org.jetbrains.teamcity:agent-api"
provided "org.jetbrains.teamcity.internal:agent"

}
2 changes: 1 addition & 1 deletion allure-teamcity-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ teamcity {
}

dependencies {
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.2'
compile 'com.fasterxml.jackson.core:jackson-databind'
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public final class AllureConstants {
*/
static final String ALLURE_ARTIFACT_SUMMARY_LOCATION = ALLURE_ARTIFACT_META_LOCATION + "summary.json";

private static final String ALLURE_COMMANDLINE_MAVEN_URL = "http://central.maven.org/" +
"maven2/io/qameta/allure/allure-commandline/";
private static final String ALLURE_COMMANDLINE_MAVEN_URL = "https://repo.maven.apache.org/maven2/"
+ "io/qameta/allure/allure-commandline/";

static final String ALLURE_COMMANDLINE_MAVEN_METADATA_URL = ALLURE_COMMANDLINE_MAVEN_URL + "maven-metadata.xml";
static final String ALLURE_COMMANDLINE_MAVEN_FILENAME = "allure-commandline-%1$s.zip";
Expand Down
34 changes: 24 additions & 10 deletions allure-teamcity-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
apply plugin: "com.github.rodm.teamcity-server"

apply from: "${gradleScriptDir}/bintray.gradle"
apply plugin: "com.github.rodm.teamcity-environments"

teamcity {
version = teamcityVersion
server {
descriptor = project.file('teamcity-plugin.xml')
tokens = [Version: project.version]
descriptor {
name = project.parent.name
displayName = 'Allure for TeamCity'
version = project.version

description = 'Plugin adds support for generate Allure report based on tests results'

vendorName = 'qameta'
vendorUrl = 'https://qameta.io'
email = 'team@qameta.io'

useSeparateClassloader = true
}
publish {
token = System.getenv("JETBRAINS_TOKEN")
}
}

environments {
Expand All @@ -28,16 +41,17 @@ serverPlugin {
//configurations.archives.artifacts.removeAll { it.archiveTask.is jar }

dependencies {
def teamcityFullDir = "$teamcityDir/TeamCity-2017.1.5"
agent project(path: ':allure-teamcity-agent', configuration: 'plugin')

agent project(path: ':allure-teamcity-agent', configuration: 'plugin')
compile project(':allure-teamcity-common')

compile 'commons-io:commons-io:2.7'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'org.apache.commons:commons-io'
compile 'org.apache.commons:commons-lang3'

provided 'javax.servlet:jstl:1.1.2'
provided "org.jetbrains.teamcity.internal:server:$teamcityVersion"
provided 'javax.servlet:jstl'
provided 'org.jetbrains.teamcity.internal:server'

def teamcityFullDir = "$teamcityDir/TeamCity-2017.1.5"
provided files("${teamcityFullDir}/webapps/ROOT/WEB-INF/lib/server-tools.jar")
provided files("${teamcityFullDir}/webapps/ROOT/WEB-INF/lib/common-tools.jar")
}
75 changes: 53 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,60 +1,91 @@
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.rodm:gradle-teamcity-plugin:1.0'
classpath 'net.researchgate:gradle-release:2.6.0'
classpath 'io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE'
classpath 'com.github.rodm:gradle-teamcity-plugin:1.2.2'
classpath 'net.researchgate:gradle-release:2.7.0'
}
}

ext {
teamcityVersion = '2017.1'
gradleScriptDir = "${rootProject.projectDir}/gradle"
teamcityDir = "${rootProject.projectDir}/.teamcity"
serverOpts = "-DTC.res.disableAll=true " +
"-Dteamcity.development.mode=true " +
"-Dteamcity.development.shadowCopyClasses=true " +
"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=50055"

gradleScriptDir = "${rootProject.projectDir}/gradle"
}

apply from: "${gradleScriptDir}/bintray.gradle"
apply from: "${gradleScriptDir}/release.gradle"
group = 'io.qameta.allure'
version = version
description = 'Allure for TeamCity'

configure(rootProject) {

description = "Allure for TeamCity"
apply from: "${gradleScriptDir}/release.gradle"

task build() {
}

afterReleaseBuild.dependsOn(":allure-ee-teamcity-server:publishPlugin")
}

tasks.withType(Wrapper.class) {
gradleVersion = '6.4'
}

allprojects {
group = 'io.qameta.allure'
version = version
}

subprojects {
apply plugin: "java"
configure(subprojects) {
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'

repositories {
jcenter()
mavenCentral()
maven { url = "https://download.jetbrains.com/teamcity-repository" }
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
}

compileJava {
compileTestJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
options.compilerArgs += '-parameters'
}

dependencyManagement {
dependencies {

dependency 'javax.servlet:jstl:1.1.2'
dependency 'org.zeroturnaround:zt-zip:1.12'

dependency 'org.apache.commons:commons-compress:1.16.1'
dependency 'org.apache.commons:commons-lang3:3.4'
dependency 'org.apache.commons:commons-io:1.3.2'
dependency 'org.apache.maven:maven-artifact:3.6.3'
dependency 'commons-logging:commons-logging:1.1.3'
dependency 'commons-httpclient:commons-httpclient:3.1'

dependency 'com.intellij:openapi:7.0.3'
dependency "org.jetbrains.teamcity:agent-api:$teamcityVersion"
dependency "org.jetbrains.teamcity.internal:agent:$teamcityVersion"
dependency "org.jetbrains.teamcity.internal:server:$teamcityVersion"

dependency 'com.fasterxml.jackson.core:jackson-databind:2.7.2'
}
}

repositories {
mavenLocal()
jcenter()
maven { url 'https://download.jetbrains.com/teamcity-repository' }
}
}

configurations.all {
resolutionStrategy {
force 'xml-apis:xml-apis:1.4.01'
}
}
31 changes: 0 additions & 31 deletions gradle/bintray.gradle

This file was deleted.

2 changes: 0 additions & 2 deletions gradle/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ apply plugin: 'net.researchgate.release'
release {
tagTemplate = '${version}'
}

afterReleaseBuild.dependsOn bintrayUpload