forked from gradle-fury/site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBootstrap-Plugin.html
More file actions
506 lines (400 loc) · 18.1 KB
/
Copy pathBootstrap-Plugin.html
File metadata and controls
506 lines (400 loc) · 18.1 KB
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
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia at 2016-02-23
| Rendered using Apache Maven Fluido Skin 1.4
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="Date-Creation-yyyymmdd" content="20160101"/>
<meta name="Date-Revision-yyyymmdd" content="20161020"/>
<meta http-equiv="Content-Language" content="en"/>
<title> Gradle Fury</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4.min.css"/>
<link rel="stylesheet" href="./css/site.css"/>
<link rel="stylesheet" href="./css/print.css" media="print"/>
<link rel="stylesheet" type="text/css" href="./css/bootstrap-sortable.css">
<script type="text/javascript" src="./js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="./js/apache-maven-fluido-1.4.min.js"></script>
<script type="text/javascript" src="./js/bootstrap-sortable.js"></script>
<script type="text/javascript" src="./js/moment.min.js"></script>
</head>
<body class="topBarDisabled">
<a href="https://github.com/gradle-fury/gradle-fury">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="./img/forkme_right_gray_6d6d6d.png"
alt="Fork me on GitHub">
</a>
<div class="container-fluid">
<div id="banner">
<div class="pull-left">
<div id="bannerLeft">
<h2> Gradle Fury</h2>
</div>
</div>
<div class="pull-right">
<div id="bannerRight">
<!-- override this with your own logo-->
<img src="./img/logo.png"/>
</div>
</div>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li class="">
<a href="https://gradle-fury.github.io/site/" class="externalLink" title="[ gradle-fury ]">
[ gradle-fury ]</a>
<span class="divider">/</span>
</li>
<li class="">
<a href="http://github.com/gradle-fury/gradle-fury" class="externalLink" title="Gradle Fury">
Gradle Fury</a>
</li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published:
2016-10-20
</li>
<li id="projectVersion" class="pull-right">
1.1.0
</li>
</ul>
</div>
<div class="row-fluid">
<div id="leftColumn" class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Overview</li>
<li >
<a href="index.html"><span class="none"></span>Introduction</a>
</li>
<!-- user generated menu goes here, basically any additional html or markdown files
from src/site are auto linked here-->
<li>
<a href="Android-Support-Plugin.html" title="Android Support Plugin">
<span class="none"></span>
Android Support Plugin</a>
</li> <li>
<a href="Bootstrap-Plugin.html" title="Bootstrap Plugin">
<span class="none"></span>
Bootstrap Plugin</a>
</li> <li>
<a href="Encryption-Plugin.html" title="Encryption Plugin">
<span class="none"></span>
Encryption Plugin</a>
</li> <li>
<a href="FAQ.html" title="FAQ">
<span class="none"></span>
FAQ</a>
</li> <li>
<a href="Home.html" title="Home">
<span class="none"></span>
Home</a>
</li> <li>
<a href="Quality-Plugin.html" title="Quality Plugin">
<span class="none"></span>
Quality Plugin</a>
</li> <li>
<a href="Release-Procedure.html" title="Release Procedure">
<span class="none"></span>
Release Procedure</a>
</li> <li>
<a href="sampleAsciidoc.html" title="Sample Asciidoc">
<span class="none"></span>
Sample Asciidoc</a>
</li> <li>
<a href="sampleHtml.html" title="Sample Html">
<span class="none"></span>
Sample Html</a>
</li> <li>
<a href="sampleMarkdown.html" title="Sample Markdown">
<span class="none"></span>
Sample Markdown</a>
</li> <li>
<a href="Site-Plugin.html" title="Site Plugin">
<span class="none"></span>
Site Plugin</a>
</li> <li>
<a href="The-Maven-Support-plugin.html" title="The Maven Support plugin">
<span class="none"></span>
The Maven Support plugin</a>
</li> <li>
<a href="wiki.html" title="Wiki">
<span class="none"></span>
Wiki</a>
</li>
<li class="nav-header">Project Documentation</li>
<li>
<a href="project-info.html" title="Project Information">
<span class="icon-chevron-down"></span>
Project Information</a>
<ul class="nav nav-list">
<li>
<a href="team-list.html" title="Project Team">
<span class="none"></span>
Project Team</a>
</li>
<li>
<a href="https://github.com/gradle-fury/gradle-fury.git" title="Source Repository">
<span class="none"></span>
Source Repository</a>
</li>
<li>
<a href="https://github.com/gradle-fury/gradle-fury/issues" title="Issue Tracking">
<span class="none"></span>
Issue Tracking</a>
</li>
<li>
<a href="project-license.html" title="Project License">
<span class="none"></span>
Project License</a>
</li>
<li>
<a href="dependency-repos.html" title="Dependency Repositories">
<span class="none"></span>
Dependency Repositories</a>
</li>
<li>
<a href="dependencyReport.html" title="Dependency Convergence">
<span class="none"></span>
Dependency Convergence</a>
</li>
<!-- maybe in the future
<li>
<a href="mail-lists.html" title="Mailing Lists">
<span class="none"></span>
Mailing Lists</a>
</li>
<li>
<a href="dependency-management.html" title="Dependency Management">
<span class="none"></span>
Dependency Management</a>
</li>
-->
<li>
<a href="https://travis-ci.org/gradle-fury/gradle-fury" title="Continuous Integration">
<span class="none"></span>
Continuous Integration</a>
</li>
<!--
<li>
<a href="plugins.html" title="Project Plugins">
<span class="none"></span>
Project Plugins</a>
</li>
-->
<li>
<a href="https://github.com/gradle-fury/gradle-fury/releases"
title="Distribution Management">
<span class="none"></span>
Distribution Management</a>
</li>
<li>
<a href="javadoc.html" title="Project Javadocs">
<span class="none"></span>
Javadocs</a>
</li>
<li>
<a href="javadocAll/index.html" title="Project Javadocs">
<span class="none"></span>
Javadocs Aggregated</a>
</li>
<li>
<a href="reports.html" title="Project Reports">
<span class="none"></span>
Project Reports</a>
</li>
</ul>
</li>
</ul>
<hr/>
</div>
</div>
<div id="bodyColumn" class="span10">
<a name="topOfPage"></a>
<h1>The Bootstrap Paradox</h1>
<p>From the Doctor Who episode....</p>
<blockquote>
<p>Imagine you have a time traveller who loves Beethoven and decides to travel back and meet his hero. However on arriving, he discovers Beethoven has not and will not write any of the music the time traveller loves so much. The time traveller, desperate, decides to copy out all of his favourite tunes for Beethoven. The plan is successful. Several centuries later, a certain time traveller is listening to his favourite composer, Beethoven, and decides to go meet the man himself…</p>
</blockquote>
<blockquote>
<p>The question is: who really wrote Beethoven’s Fifth Symphony?</p>
</blockquote>
<p>Well it's not really a paradox in this case, it's a helper file to get you up and running with gradle-fury by</p>
<ul>
<li>Asking you a bunch of questions that end up in the pom</li>
<li>Modifying your build files to have the correct includes for a minimal setup</li>
<li>Removes itself from your build file</li>
</ul>
<h1>Using the bootstrap gradle file.</h1>
<ol>
<li>Edit your root build.gradle file and add <code>apply from 'https://raw.githubusercontent.com/gradle-fury/gradle-fury/master/gradle/encryption.gradle'</code></li>
<li>run <code>gradlew hackTime</code> or <code>gradlew bootstrap</code> they both do the same thing</li>
<li>it will prompt you with a number of questions that basically lets you populate the pom. Answer the questions the best you can, you can always change the responses later. They are stored in <code>gradle.properties</code>.</li>
</ol>
<p>After it's done, the bootstrap plugin will alter your build files the best it can to provide you a minimal configuration for gradle fury. All modified files are backed up.</p>
<h1>Next steps</h1>
<p>What's next is you should check out the sample projects and how they are organized and what things gradle-fury can do for you.
In many cases, your module gradle.build files can by simplified and minimized.</p>
</div>
<div id="iframenav" style="visibility:hidden">
<center><h3><a name="iframeAnchor"></a><a href="#topOfPage"> -- Top --</a></h3>
<a href="javascript:popout();">Load in a new window</a>
</center>
</div>
<iframe id="frame1" width="100%" height="75%" style="display:none"></iframe>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<!-- footer -->
</div>
</div>
</footer>
<div class="modal hide fade" id="modal1">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Artifact Details</h3>
</div>
<div class="modal-body">
<h3>Gradle</h3>
<pre id="gradleDep">
</pre>
<h3>Maven</h3>
<pre id="mavenDep">
</pre>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" >Close</a>
</div>
</div>
<script type="text/javascript">
/**
* opens the current iframe url in a new window or tab
*/
function popout(){
var destination = $("#frame1").attr('src');
var win = window.open(destination, '_blank');
win.focus();
}
/**
* displays a report and shows the iframe
*/
function showReport(url){
$("#iframenav").css('visibility','');
$("#frame1").show();
$("#frame1").attr('src', url);
$("#frame1").attr('height', window.innerHeight);
window.location.assign("#iframeAnchor");
}
/**
* shows our maven/gradle helper modal
type is the file extension
*/
function showModal(group, artifact, version,type, classifier){
/**
if classifier and types
foreach classifier
foreach types
else if classifier
foreach classifier
else if type
foreah type
else
just output it
*/
//string outputs
var maventxt ="";
var gradle="";
var hasClassifiers = classifier !== "" && classifier !== undefined;
var hasTypes = type !== "" && type !== undefined;
if (hasClassifiers && hasTypes){
type = type.trim();
var types = type.split(" ");
classifier = classifier.trim();
var classifiers = classifier.split(" ");
for (var i = 0; i < types.length; i++) {
if (types[i].trim().length==0)
continue;
for (var k = 0; k < classifiers.length; k++) {
if (classifiers[k].trim().length==0)
continue;
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt += "<type>" + types[i].trim() + "</type>\n\t";
maventxt += "<classifier>" + classifiers[k].trim() + "</classifier>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += ":" + classifiers[k].trim();
gradle += "@" + types[i];
gradle += "'\n";
}
}
} else if (hasClassifiers) {
classifier = classifier.trim();
var types = classifier.split(" ");
for (var i = 0; i < types.length; i++) {
if (types[i].trim().length==0)
continue;
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt += "<classifier>" + types[i].trim() + "</classifier>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += ":" + types[i];
gradle += "'\n";
}
} else if (hasTypes) {
type = type.trim();
var types = type.split(" ");
for (var i = 0; i < types.length; i++) {
if (types[i].trim().length==0)
continue;
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt += "<type>" + types[i].trim() + "</type>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += "@" + types[i];
gradle += "'\n";
}
} else {
//no type or classifiers
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += "'\n";
}
$("#mavenDep").text(maventxt);
$("#gradleDep").text(gradle);
$('#modal1').modal()
}
$("table").addClass("table table-striped sortable");
$(function () {
setNavigation();
});
/**
* this sets the "active" bit on the left hand side naviation menu
*/
function setNavigation() {
var path = window.location.pathname;
path = path.replace(/\/$/, "");
path = decodeURIComponent(path);
var idx=path.toString().lastIndexOf("/");
if (idx >= 0)
path=path.substring(idx+1, path.length);
$(".nav a").each(function () {
var href = $(this).attr('href');
if (path.substring(0, href.length) === href) {
$(this).closest('li').addClass('active');
}
});
}
</script>
</body>
</html>