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(':proxy') 42 implementation project(':ssh') 43 } 44 45 46 jar { 47 manifest { 48 attributes("Implementation-Title": "org.openjdk.skara.cli", "Implementation-Version": version) 49 } 50 } 51 52 images { 53 ext.launchers = [ 54 'git-jcheck': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitJCheck', 55 'git-webrev': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitWebrev', 56 'git-defpath': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitDefpath', 57 'git-verify-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitVerifyImport', 58 'git-openjdk-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitOpenJDKImport', 59 'git-fork': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitFork', 60 'git-pr': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitPr', 61 'git-token': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitToken', 62 'git-info': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitInfo', 63 'git-translate': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitTranslate', 64 'git-skara': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitSkara', 65 'hg-openjdk-import': 'org.openjdk.skara.cli/org.openjdk.skara.cli.HgOpenJDKImport', 66 'git-sync': 'org.openjdk.skara.cli/org.openjdk.skara.cli.GitSync' 67 ] 68 69 ext.modules = ['jdk.crypto.ec'] 70 71 windows { 72 modules = ext.modules 73 launchers = ext.launchers 74 bundles = ['zip', 'tar.gz'] 75 jdk { 76 url = 'https://download.java.net/java/GA/jdk12/GPL/openjdk-12_windows-x64_bin.zip' 77 sha256 = '35a8d018f420fb05fe7c2aa9933122896ca50bd23dbd373e90d8e2f3897c4e92' 78 } 79 } 80 81 linux { 82 modules = ext.modules 83 launchers = ext.launchers 84 man = 'cli/resources/man' 85 bundles = ['zip', 'tar.gz'] 86 jdk { 87 url = 'https://download.java.net/java/GA/jdk12/GPL/openjdk-12_linux-x64_bin.tar.gz' 88 sha256 = 'b43bc15f4934f6d321170419f2c24451486bc848a2179af5e49d10721438dd56' 89 } 90 } 91 92 macos { 93 modules = ext.modules 94 launchers = ext.launchers 95 man = 'cli/resources/man' 96 bundles = ['zip', 'tar.gz'] 97 jdk { 98 url = 'https://download.java.net/java/GA/jdk12/GPL/openjdk-12_osx-x64_bin.tar.gz' 99 sha256 = '52164a04db4d3fdfe128cfc7b868bc4dae52d969f03d53ae9d4239fe783e1a3a' 100 } 101 } 102 }