/usr/share/doc/gradle/examples/readme.html is in gradle-doc 3.4.1-7ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 | <html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Gradle Samples</title><meta content="DocBook XSL Stylesheets V1.79.1" name="generator"><style xmlns:xi="http://www.w3.org/2001/XInclude" type="text/css">
/* reset.css */
html {margin:0;padding:0;border:0;}
body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;}
article, aside, details, figcaption, figure, dialog, footer, header, hgroup, menu, nav, section {display:block;}
body {line-height:1.5;background:white;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;float:none !important;}
table, th, td {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:'';}
blockquote, q {quotes:"" "";}
a img {border:none;}
:focus {outline:0;}
/* typography.css */
html {font-size:100.01%;}
h1, h2, h3, h4, h5, h6 {font-weight:normal; line-height: 1;color: #007042;}
h1 {font-size:4em;}
h2 {font-size:2.2em;}
h3 {font-size:1.5em;}
h4 {font-size:1.3em;}
h5 {font-size:1.1em;}
h6 {font-size:1em;font-weight:bold;}
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
.left {float:left !important;}
p .left {margin:1.5em 1.5em 1.5em 0;padding:0;}
.right {float:right !important;}
p .right {margin:1.5em 0 1.5em 1.5em;padding:0;}
a:focus, a:hover {color:#09f;}
a {color:#06c;text-decoration:underline;}
blockquote {margin:1.5em;color:#666;font-style:italic;}
strong, dfn {font-weight:bold;}
em, dfn {font-style:italic;}
sup, sub {line-height:0;}
abbr, acronym {border-bottom:1px dotted #666;}
address {margin:0 0 1.5em;font-style:italic;}
del {color:#666;}
pre {margin:1.5em 0;white-space:pre;}
/*pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}*/
li ul, li ol {margin:0;}
ul, ol {padding-left:1.5em;}
ul {list-style-type:disc;}
ol {list-style-type:decimal;}
dl {margin:0 0 1.5em 0;}
dl dt {font-weight:normal;}
dd {margin-left:1.5em;}
table {margin-bottom:1.4em;}
th {font-weight:bold;}
thead th {background:#c3d9ff;}
th, td, caption {padding:4px 10px 4px 5px;}
tfoot {font-style:italic;}
caption {background:#eee;}
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
.hide {display:none;}
.quiet {color:#666;}
.loud {color:#000;}
.highlight {background:#ff0;}
.added {background:#060;color:#fff;}
.removed {background:#900;color:#fff;}
.first {margin-left:0;padding-left:0;}
.last {margin-right:0;padding-right:0;}
.top {margin-top:0;padding-top:0;}
.bottom {margin-bottom:0;padding-bottom:0;}
::selection {
background-color: #DDF0DD;
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'), url('data:font/opentype;base64,@lato-regular@') format('truetype');
}
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: local('Lato Italic'), local('Lato-Italic'), url('data:font/opentype;base64,@lato-regular-italic@') format('truetype');
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'), url('data:font/opentype;base64,@lato-bold@') format('truetype');
}
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url('data:font/opentype;base64,@lato-bold-italic@') format('truetype');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: normal;
font-weight: 700;
src: local('Ubuntu Mono Bold'), local('UbuntuMono-Bold'), url('data:font/opentype;base64,@ubuntumono-bold@') format('truetype');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: normal;
font-weight: 400;
src: local('Ubuntu Mono'), local('UbuntuMono-Regular'), url('data:font/opentype;base64,@ubuntumono-regular@') format('truetype');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: italic;
font-weight: 700;
src: local('Ubuntu Mono Bold Italic'), local('UbuntuMono-BoldItalic'), url('data:font/opentype;base64,@ubuntumono-bold-italic@') format('truetype');
}
@font-face {
font-family: 'Ubuntu Mono';
font-style: italic;
font-weight: 400;
src: local('Ubuntu Mono Italic'), local('UbuntuMono-Italic'), url('data:font/opentype;base64,@ubuntumono-regular-italic@') format('truetype');
}
body {
font-size: 16px;
font-family: 'Lato', Arial, serif;
margin: 28px 28px 14px;
color: #333;
background: url('data:image/gif;base64,R0lGODdhLAFhAMQAAL/Xy7/Xy8HZzcbd0sbd0szg1szg1t7sw9Lk29vp4uDtxeDtxeTwzOny1uny1uny1uLt5+Lt5+ry6ery6ery6e308PP46fP46f7+/v7+/v7+/v7+/v7+/kAAAAAAAAAyQCwAAAAALAFhAAAF/yAmjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvter/gsHhMLpvP6LR6zW673/C4fE6v2+/4vH7P7/v/gIGCg4SFhoeIiYqLjI1FFRAQAwCUAAgQEhWOm16QCQWTlaKVAgMICZqcqlOfAqOvsACll6u1TaGxua8DqLa+RhC6wrsIqb9DFcnKySjLy3sFw9KkCcdCCALZ2gIFJ9jb2d16Fa7T0wMQ1j8IsOIl7Lt8CebmAgjqPfCj7iT6ogNvLLCogIvesALG8N3wV4nfCIaUALZpoEDginkGz0lQiAMiAIciPEpcQ/FAgxbRMv9KE5COYw2PIDGIZMNAgc2KLCSUUymMpUsaML3BGomG4k0FDFp45PnK588YQU3MTGP0qIKTKyok2Mq1q1ev2IYJSPiURdR3Q6laPWrxR0phA8iWTXG2X9ozFtYexfqDnLSYc6W2ExrPjIWaem+29YFxWLXAKuo+vFumwYHEN5MCIbhSLuTJr2JOJZMX894gjYUB/iw5JOUxiE3bXOyjoK6Wn9GGJjyKaJjSsq8i26nLNw9PCJKfynQcQvKNAyEkUL7ccw2t1BNAMNZa5usZyJVrt84jtmza66bh1qG1QLampsi70Dpg5+NmrWDNgn4dQX39BaDS3WgxQOKeftys1w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, ul, .para {
margin: 0 0 16px;
}
h1, h2, h3, h4, h5, h6 {
margin-bottom: 14px
}
h2 {
margin-top: 32px;
}
h3, h4, h5, h6 {
margin-top: 22px;
}
.text-container,
div.book,
div.chapter,
div.part,
div.appendix,
div.glossary {
margin-left: 10px;
margin-right: 10px;
}
.text-container h1, .text-container h2, .text-container h3, .text-container h4, .text-container h5,
div.book h1, div.book h2, div.book h3, div.book h4, div.book h5,
div.chapter h1, div.chapter h2, div.chapter h3, div.chapter h4, div.chapter h5 {
margin-left: -10px;
}
code, tt, pre {
font-family: "Ubuntu Mono", courier, monospace;
}
h1, h2, h3, h4 {
text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
}
h5, h6 {
color: #666;
}
h1 {
font-weight: bold;
}
h3.releaseinfo {
color: #666666;
padding-top: 0;
}
a {
color: #007042;
text-decoration: none;
}
a:visited {
color: #007042;
}
a:hover {
color: #007042;
border-bottom: 1px dotted #007042;
}
a:focus {
outline: thin dotted;
}
a:hover, a:active {
outline: 0;
}
table {
border-collapse: collapse;
font-size: 100%;
min-width: 50%;
border: solid #d0d0d0 1px;
}
table td {
text-align: left;
vertical-align: text-top;
padding-left: 0.8em;
padding-right: 0.8em;
padding-top: 0.3em;
padding-bottom: 0.3em;
}
table thead td, table th {
font-weight: bold;
border-bottom: solid #d0d0d0 1px;
background-color: #f2f2f2;
}
table th.border-right {
border-right: solid #d0d0d0 1px;
}
table th.no-border-bottom {
border-bottom: none;
}
pre {
border-radius: 5px;
padding: 0.8em;
line-height: 1.3;
}
pre.code, pre.programlisting {
background-color: #3F3F3F;
color: white;
}
pre.screen, pre.tt {
color: darkGreen;
background-color: white;
box-shadow: inset 0 0 7px 0px darkGray;
}
tbody tr:nth-child(even) td, tbody tr.even td {
background: #F7F7F7;
}
li em, p em {
padding: 0 1px 0 1px;
text-decoration: underline;
}
code em, tt em {
text-decoration: none;
}
.variablelist dt {
font-weight: bold;
}
.variablelist dt a {
font-weight: normal;
}
.itemizedlist li p {
margin: 0;
}
.example, .figure, .table {
margin-top: 0;
margin-bottom: 1.8em;
}
.example .title, .figure .title, .table .title {
white-space: nowrap;
/*overflow-x: hidden;*/
margin-top: 0;
margin-bottom: 0.6em;
}
.example pre, .figure pre {
margin: 0;
margin-bottom: 0.6em;
}
.example-contents > p {
display: block;
margin: 0;
margin-bottom: 0.2em;
}
.example-break, .figure-break {
display: none
}
.exampleLocation {
margin-top: 0.5em;
padding-left: 1.7em;
background: #FEFEDD;
color: #777744;
border: 1px solid #DBDBA8;
padding-top: 0.4em;
padding-bottom: 0.4em;
}
.exampleLocation .emphasis em {
font-style: normal;
font-weight: bold;
}
.cmdsynopsis {
font-family: "Ubuntu Mono", courier, monospace;
margin-left: 2em;
}
.appendix h1 {
margin-bottom: 1.0em;
}
.footnote sup {
vertical-align: baseline;
font-size: 100%;
}
.note > :last-child, .tip > :last-child, .examplelocation > :last-child {
margin-bottom: 0px
}
.note, .tip {
padding: 1em 1.2em;
margin-bottom: 1em;
}
.note {
background: #ebf4f7;
border: solid #c3d9e6 1px;
}
.note .title {
color: #5283a1;
margin-left: 0px;
}
.tip {
background: #FAF7F5;
border: solid #e2d2c9 1px;
float: right;
clear: right;
margin-left: 2em;
margin-top: 1em;
margin-bottom: 1em;
max-width: 30%;
width: 30%;
}
.tip .title {
color: #80614D;
margin-left: 0px;
}
.tip h1, .note h1
.tip h2, .note h2,
.tip h3, .note h3,
.tip h4, .note h4,
.tip h5, .note h5,
.tip h6, .note h6
{
margin-top: 0;
}
.literal, .userinput, .filename {
white-space: nowrap;
}
/*
* Code highlighting
*/
.hl-string, .hl-number, .hl-value { color: #83C283; }
.hl-keyword { color: #DDC498 }
.hl-comment, .hl-doccomment { color: #AFAFAF; }
.hl-annotation { color: #DDDD97; }
.hl-directive { color: white !important; }
a.link {
white-space: nowrap;
}
/*
* Table of Contents
*/
.toc dl, .list-of-examples dl {
margin-top: 0;
margin-bottom: 0;
}
.book .toc > dl > dt {
margin-top: 0.6em;
}
.book .toc > dl > dt > .part {
display: inline-block;
font-size: 1.4em;
font-variant: small-caps;
margin-top: 0.6em;
margin-bottom: 0.3em;
}
.book .toc > dl > dd {
margin-left: 0;
}
.book .toc, .book .list-of-examples {
margin-top: 1.5em;
}
div.toc p { /* Is "Table Of Contents" header */
font-size: 28px;
color: #007042;
margin-bottom: 0.5em;
}
div.toc p b {
font-weight: normal;
}
.chapter > .toc {
margin-bottom: 1em;
}
.chapter > .toc > dl {
margin-left: 1.5em;
}
/*
* HEADER/FOOTER
*/
.navheader {
display: none;
}
.navfooter {
margin-top: 3em;
padding-top: 1em;
width: 100%;
border-top: solid #d0d0d0 0.4em;
}
.navbar {
color: #a2a2a2;
font-size: 90%;
width: 100%;
text-align: center;
}
.navbar a {
color: #444444;
}
.navbar span {
padding-left: .8em;
padding-right: .8em;
}
/**
* TITLEPAGE
*/
.titlepage .author {
color: #666666;
}
.titlepage .copyright {
color: #a2a2a2;
}
.titlepage .legalnotice {
color: #a2a2a2;
}
.titlepage p {
margin: 0;
}
/*
* Single page html
*/
.book .chapter {
margin-top: 4em;
}
.toc .chapter {
padding-top: 0;
}
div.example code.filename {
font-weight: bold;
}
/* Clickable links on section headers */
h2 > a.section-anchor, h3 > a.section-anchor, h4 > a.section-anchor {
background-image: url("icon-link.svg");
background-repeat: no-repeat;
background-position: 0em 105%; /* 105% works well for published docs */
background-size: 0.9em;
display: inline-block;
text-decoration: none !important;
width: 0.9em;
height: 0.9em;
margin-left: -0.9em;
visibility: hidden;
}
/* This is a similar approach to the one immediately
above, but using a Unicode character rather than
an SVG image. It's the approach currently taken by
Asciidoctor.
I'm leaving it here in case someone wants to switch
back to using a character rather than an image.
h2 > a:before, h3 > a:before, h4 > a:before {
content: "\00A7";
display: inline-block;
font-size: 90%;
}
*/
h2:hover > a.section-anchor, h2 > a.section-anchor:hover,
h3:hover > a.section-anchor, h3 > a.section-anchor:hover,
h4:hover > a.section-anchor, h4 > a.section-anchor:hover {
border: inherit;
visibility: visible;
}
</style></head><body><div class="appendix"><div class="titlepage"><div><div><h1 xmlns:xslthl="http://xslthl.sf.net"><a name="sample_list"></a>Gradle Samples</h1></div></div></div><p>
Listed below are some of the stand-alone samples which are included in the Gradle distribution. You can find these samples in the
<code class="filename">
<em class="replaceable"><code>GRADLE_HOME</code></em>
/samples
</code>
directory of the distribution.
</p><div class="table"><p class="title"><b>Table 1. Samples included in the distribution</b></p><div class="table-contents"><table id="N1000E"><thead><td>Sample</td><td>Description</td></thead><tr>
<td>
<code class="filename">announce</code>
</td>
<td>
<p>A project which uses the announce plugin</p>
</td>
</tr><tr>
<td>
<code class="filename">application</code>
</td>
<td>
<p>A project which uses the application plugin</p>
</td>
</tr><tr>
<td>
<code class="filename">buildDashboard</code>
</td>
<td>
<p>A project which uses the build-dashboard plugin</p>
</td>
</tr><tr>
<td>
<code class="filename">codeQuality</code>
</td>
<td>
<p>A project which uses the various code quality plugins.</p>
</td>
</tr><tr>
<td>
<a class="link" href="#762256042">
<code class="filename">customBuildLanguage</code>
</a>
</td>
<td>
<p>This sample demonstrates how to add some custom elements to the build DSL. It also demonstrates the use of
custom plug-ins to organize build logic.
</p>
</td>
</tr><tr>
<td>
<a class="link" href="#-302470759">
<code class="filename">customDistribution</code>
</a>
</td>
<td>
<p>This sample demonstrates how to create a custom Gradle distribution and use it with the Gradle wrapper.</p>
</td>
</tr><tr>
<td>
<a class="link" href="#722453639">
<code class="filename">customPlugin</code>
</a>
</td>
<td>
<p>A set of projects that show how to implement, test, publish and use a custom plugin and task.</p>
</td>
</tr><tr>
<td>
<code class="filename">ear/earCustomized/ear</code>
</td>
<td>
<p>Web application ear project with customized contents</p>
</td>
</tr><tr>
<td>
<code class="filename">ear/earWithWar</code>
</td>
<td>
<p>Web application ear project</p>
</td>
</tr><tr>
<td>
<code class="filename">groovy/crossCompilation</code>
</td>
<td>
<p>A project doing cross compilation for a Groovy Project to Java 6</p>
</td>
</tr><tr>
<td>
<code class="filename">groovy/customizedLayout</code>
</td>
<td>
<p>Groovy project with a custom source layout</p>
</td>
</tr><tr>
<td>
<code class="filename">groovy/mixedJavaAndGroovy</code>
</td>
<td>
<p>Project containing a mix of Java and Groovy source</p>
</td>
</tr><tr>
<td>
<code class="filename">groovy/multiproject</code>
</td>
<td>
<p>Build made up of multiple Groovy projects. Also demonstrates how to exclude certain source files, and the use
of a custom Groovy AST transformation.
</p>
</td>
</tr><tr>
<td>
<code class="filename">groovy/quickstart</code>
</td>
<td>
<p>Groovy quickstart sample</p>
</td>
</tr><tr>
<td>
<code class="filename">java-library/multiproject</code>
</td>
<td>
<p>Java Library multiproject</p>
</td>
</tr><tr>
<td>
<code class="filename">java-library/quickstart</code>
</td>
<td>
<p>Java Library quickstart project</p>
</td>
</tr><tr>
<td>
<code class="filename">java/base</code>
</td>
<td>
<p>Java base project</p>
</td>
</tr><tr>
<td>
<code class="filename">java/crossCompilation</code>
</td>
<td>
<p>A project doing cross compilation to Java 6</p>
</td>
</tr><tr>
<td>
<code class="filename">java/customizedLayout</code>
</td>
<td>
<p>Java project with a custom source layout</p>
</td>
</tr><tr>
<td>
<a class="link" href="#-1289419154">
<code class="filename">java/multiproject</code>
</a>
</td>
<td>
<p>This sample demonstrates how an application can be composed using multiple Java projects.</p>
</td>
</tr><tr>
<td>
<code class="filename">java/quickstart</code>
</td>
<td>
<p>Java quickstart project</p>
</td>
</tr><tr>
<td>
<code class="filename">java/withIntegrationTests</code>
</td>
<td>
<p>This sample demonstrates how to use a source set to add an integration test suite to a Java project.</p>
</td>
</tr><tr>
<td>
<code class="filename">javaGradlePlugin</code>
</td>
<td>
<p>
This example demonstrates the use of the java gradle plugin development plugin. By applying the plugin, the java plugin
is automatically applied as well as the gradleApi() dependency. Furthermore, validations are performed against the
plugin metadata during jar execution.
</p>
</td>
</tr><tr>
<td>
<code class="filename">maven/pomGeneration</code>
</td>
<td>
<p>Demonstrates how to deploy and install to a Maven repository. Also demonstrates how to deploy a javadoc JAR
along with the main JAR, how to customize the contents of the generated POM, and how to deploy snapshots and
releases to different repositories.
</p>
</td>
</tr><tr>
<td>
<code class="filename">maven/quickstart</code>
</td>
<td>
<p>Demonstrates how to deploy and install artifacts to a Maven repository.</p>
</td>
</tr><tr>
<td>
<code class="filename">osgi</code>
</td>
<td>
<p>A project which builds an OSGi bundle</p>
</td>
</tr><tr>
<td>
<a class="link" href="#-1863077813">
<code class="filename">plugins</code>
</a>
</td>
<td>
<p>A set of projects that show how to implement, test, publish and use a custom plugins with the latest technology.</p>
</td>
</tr><tr>
<td>
<code class="filename">scala/crossCompilation</code>
</td>
<td>
<p>A project doing cross compilation for a Scala project to Java 6</p>
</td>
</tr><tr>
<td>
<code class="filename">scala/customizedLayout</code>
</td>
<td>
<p>Scala project with a custom source layout</p>
</td>
</tr><tr>
<td>
<code class="filename">scala/force</code>
</td>
<td>
<p>Scala quickstart project</p>
</td>
</tr><tr>
<td>
<code class="filename">scala/mixedJavaAndScala</code>
</td>
<td>
<p>A project containing a mix of Java and Scala source.</p>
</td>
</tr><tr>
<td>
<code class="filename">scala/quickstart</code>
</td>
<td>
<p>Scala quickstart project</p>
</td>
</tr><tr>
<td>
<code class="filename">scala/zinc</code>
</td>
<td>
<p>Scala project using the Zinc based Scala compiler.</p>
</td>
</tr><tr>
<td>
<code class="filename">testing/testReport</code>
</td>
<td>
<p>Generates an HTML test report that includes the test results from all subprojects.</p>
</td>
</tr><tr>
<td>
<code class="filename">toolingApi/customModel</code>
</td>
<td>
<p>A sample of how a plugin can expose its own custom tooling model to tooling API clients.</p>
</td>
</tr><tr>
<td>
<code class="filename">toolingApi/eclipse</code>
</td>
<td>
<p>An application that uses the tooling API to build the Eclipse model for a project.</p>
</td>
</tr><tr>
<td>
<code class="filename">toolingApi/idea</code>
</td>
<td>
<p>An application that uses the tooling API to extract information needed by IntelliJ IDEA.</p>
</td>
</tr><tr>
<td>
<code class="filename">toolingApi/model</code>
</td>
<td>
<p>An application that uses the tooling API to build the model for a Gradle build.</p>
</td>
</tr><tr>
<td>
<code class="filename">toolingApi/runBuild</code>
</td>
<td>
<p>An application that uses the tooling API to run a Gradle task.</p>
</td>
</tr><tr>
<td>
<code class="filename">userguide/distribution</code>
</td>
<td>
<p>A project which uses the distribution plugin</p>
</td>
</tr><tr>
<td>
<code class="filename">userguide/javaLibraryDistribution</code>
</td>
<td>
<p>A project which uses the Java library distribution plugin</p>
</td>
</tr><tr>
<td>
<code class="filename">webApplication/customized</code>
</td>
<td>
<p>Web application with customized WAR contents.</p>
</td>
</tr><tr>
<td>
<code class="filename">webApplication/quickstart</code>
</td>
<td>
<p>Web application quickstart project</p>
</td>
</tr></table></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a name="762256042" class="section-anchor" href="#762256042"></a>
Sample
<code class="filename">customBuildLanguage</code>
</h2></div></div></div><p>This sample demonstrates how to add some custom elements to the build DSL. It also demonstrates the use of
custom plug-ins to organize build logic.
</p><p>The build is composed of 2 types of projects. The first type of project represents a product, and the second
represents a product module. Each product includes one or more product modules, and each product module may be
included in multiple products. That is, there is a many-to-many relationship between these products and product
modules. For each product, the build produces a ZIP containing the runtime classpath for each product module
included in the product. The ZIP also contains some product-specific files.
</p><p>
The custom elements can be seen in the build script for the product projects (for example,
<code class="filename">basicEdition/build.gradle</code>
). Notice that the build script uses the
<code class="literal">product { }</code>
element. This is a custom element.
</p><p>
The build scripts of each project contain only declarative elements. The bulk of the work is done by 2
custom plug-ins found in
<code class="filename">buildSrc/src/main/groovy</code>
.
</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a name="-302470759" class="section-anchor" href="#-302470759"></a>
Sample
<code class="filename">customDistribution</code>
</h2></div></div></div><p>This sample demonstrates how to create a custom Gradle distribution and use it with the Gradle wrapper.</p><p>This sample contains the following projects:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
The
<code class="filename">plugin</code>
directory contains the project that implements a custom plugin, and bundles the plugin into a custom
Gradle distribution.
</p></li><li class="listitem"><p>
The
<code class="filename">consumer</code>
directory contains the project that uses the custom distribution.
</p></li></ul></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a name="722453639" class="section-anchor" href="#722453639"></a>
Sample
<code class="filename">customPlugin</code>
</h2></div></div></div><p>A set of projects that show how to implement, test, publish and use a custom plugin and task.</p><p>This sample contains the following projects:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
The
<code class="filename">plugin</code>
directory contains the project that implements and publishes the plugin.
</p></li><li class="listitem"><p>
The
<code class="filename">consumer</code>
directory contains the project that uses the plugin.
</p></li></ul></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a name="-1289419154" class="section-anchor" href="#-1289419154"></a>
Sample
<code class="filename">java/multiproject</code>
</h2></div></div></div><p>This sample demonstrates how an application can be composed using multiple Java projects.</p><p>This build creates a client-server application which is distributed as 2 archives. First, there is a client
ZIP which includes an API JAR, which a 3rd party application would compile against, and a client runtime. Then,
there is a server WAR which provides a web service.
</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a name="-1863077813" class="section-anchor" href="#-1863077813"></a>
Sample
<code class="filename">plugins</code>
</h2></div></div></div><p>A set of projects that show how to implement, test, publish and use a custom plugins with the latest technology.</p><p>This sample contains the following projects:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
The
<code class="filename">buildscript</code>
directory contains a project that uses the old
<code class="code">buildscript</code>
syntax for using plugins.
</p></li><li class="listitem"><p>
The
<code class="filename">dsl</code>
directory contains the a project that uses the new
<code class="code">plugins</code>
syntax for using plugins.
</p></li><li class="listitem"><p>
The
<code class="filename">publishing</code>
directory contains a complete example of the modern publishing plugins working with the java-gradle-plugin
to produce two plugins shipped in the same jar and being published to both an ivy and maven repository.
</p></li><li class="listitem"><p>
The
<code class="filename">consuming</code>
directory contains an example of resolving plugins from custom repositories instead the Gradle Plugin Portal.
</p></li></ul></div></div></div></body></html>
|