1 /*
  2  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
  3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4  *
  5  * This code is free software; you can redistribute it and/or modify it
  6  * under the terms of the GNU General Public License version 2 only, as
  7  * published by the Free Software Foundation.
  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */
 23 
 24 plugins {
 25     id 'org.openjdk.skara.gradle.images'
 26 }
 27 
 28 module {
 29     name = 'org.openjdk.skara.cli'
 30 }
 31 
 32 dependencies {
 33     implementation project(':args')
 34     implementation project(':census')
 35     implementation project(':ini')
 36     implementation project(':jcheck')
 37     implementation project(':vcs')
 38     implementation project(':webrev')
 39     implementation project(':json')
 40     implementation project(':host')
 41     implementation project(':forge')
 42     implementation project(':issuetracker')
 43     implementation project(':proxy')
 44     implementation project(':ssh')
 45 }
 46 
 47 
 48 jar {
 49     manifest {
 50         attributes("Implementation-Title": "org.openjdk.skara.cli", "Implementation-Version": version)
 51     }
 52 }
 53 
 54 images {
 55     ext.launchers = [
 56         'git-jcheck': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitJCheck',
 57         'git-webrev': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitWebrev',
 58         'git-defpath': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitDefpath',
 59         'git-verify-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitVerifyImport',
 60         'git-openjdk-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitOpenJDKImport',
 61         'git-fork': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitFork',
 62         'git-pr': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitPr',
 63         'git-token': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitToken',
 64         'git-info': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitInfo',
 65         'git-translate': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitTranslate',
 66         'git-skara': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitSkara',
 67         'hg-openjdk-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.HgOpenJDKImport',
 68         'git-sync': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitSync',
 69         'git-publish': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitPublish'
 70     ]
 71 
 72     ext.modules = ['jdk.crypto.ec']
 73 
 74     windows {
 75         modules = ext.modules
 76         launchers = ext.launchers
 77         bundles = ['zip', 'tar.gz']
 78         jdk {
 79             url = 'https://download.java.net/java/GA/jdk12/GPL/openjdk-12_windows-x64_bin.zip'
 80             sha256 = '35a8d018f420fb05fe7c2aa9933122896ca50bd23dbd373e90d8e2f3897c4e92'
 81         }
 82     }
 83 
 84     linux {
 85         modules = ext.modules
 86         launchers = ext.launchers
 87         man = 'cli/resources/man'
 88         bundles = ['zip', 'tar.gz']
 89         jdk {
 90             url = 'https://download.java.net/java/GA/jdk12/GPL/openjdk-12_linux-x64_bin.tar.gz'
 91             sha256 = 'b43bc15f4934f6d321170419f2c24451486bc848a2179af5e49d10721438dd56'
 92         }
 93     }
 94 
 95     macos {
 96         modules = ext.modules
 97         launchers = ext.launchers
 98         man = 'cli/resources/man'
 99         bundles = ['zip', 'tar.gz']
100         jdk {
101             url = 'https://download.java.net/java/GA/jdk12/GPL/openjdk-12_osx-x64_bin.tar.gz'
102             sha256 = '52164a04db4d3fdfe128cfc7b868bc4dae52d969f03d53ae9d4239fe783e1a3a'
103         }
104     }
105 }