Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build_install.gradle.erb « gradle « maven « package_managers « fixtures « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 31543d30e8876bcab9f1ff38164b9e4e815aaab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
plugins {
    id 'java'
    id 'application'
}

repositories {
    maven {
        url "<%= gitlab_address_with_port %>/api/v4/projects/<%= package_project.id %>/packages/maven"
        name "GitLab"
        credentials(HttpHeaderCredentials) {
            name = '<%= maven_header_name %>'
            value = <%= token %>
        }
        authentication {
            header(HttpHeaderAuthentication)
        }
    }
}

dependencies {
    implementation group: '<%= group_id %>', name: '<%= artifact_id %>', version: '<%= package_version %>'
    testImplementation 'junit:junit:4.12'
}

application {
  mainClassName = 'gradle_maven_app.App'
}